<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tHttpRequest POST multipart/form-data? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-POST-multipart-form-data/m-p/2344475#M112124</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;tHttpRequest component is able to do the POST file over HTTP protocol with custom headers.&lt;/P&gt;&lt;P&gt;You have for the Headers section: &lt;/P&gt;&lt;P&gt;"Content-Type" "multipart/form-data" &lt;/P&gt;&lt;P&gt;"submit" "1" &lt;/P&gt;&lt;P&gt;"upfile" "C:\XXXXXX\YYYY.csv" &lt;/P&gt;&lt;P&gt;Method: POST &lt;/P&gt;&lt;P&gt;And the appropriate authentication.&lt;/P&gt;&lt;P&gt;In addition to that, here is a tfilefetch component which can also send a file.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 03:20:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-24T03:20:11Z</dc:date>
    <item>
      <title>tHttpRequest POST multipart/form-data?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-POST-multipart-form-data/m-p/2344474#M112123</link>
      <description>&lt;P&gt;Does the tHttpRequest post the file as a separate part? If so does it set the content-disposition part header for the file as the filname?  (or do I have to build the content myself and use tREST somehow?)&lt;/P&gt;&lt;P&gt;The website I'm hitting expects the POST to be multi-part, but I'm guessing Talend just includes the content of the file as a single post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the POST I need to make:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;POST &lt;A href="https://someLMShost.edu/d2l/api/lp/%7Bversion%7D/profile/myProfile/image" alt="https://someLMShost.edu/d2l/api/lp/%7Bversion%7D/profile/myProfile/image" target="_blank"&gt;https://someLMShost.edu/d2l/api/lp/{version}/profile/myProfile/image&lt;/A&gt; HTTP/1.1&lt;/P&gt;&lt;P&gt;Content-Type: multipart/form-data; boundary=xxBOUNDARYxx&lt;/P&gt;&lt;P&gt;Content-Length: {POST body length in bytes}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--xxBOUNDARYxx&lt;/P&gt;&lt;P&gt;Content-Disposition: form-data; name="profileImage"; filename="my_new_profile_image.png"&lt;/P&gt;&lt;P&gt;Content-Type: image/png&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{image file data bytes}&lt;/P&gt;&lt;P&gt;--xxBOUNDARYxx--&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-POST-multipart-form-data/m-p/2344474#M112123</guid>
      <dc:creator>imholzj</dc:creator>
      <dc:date>2024-11-15T21:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: tHttpRequest POST multipart/form-data?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-POST-multipart-form-data/m-p/2344475#M112124</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;tHttpRequest component is able to do the POST file over HTTP protocol with custom headers.&lt;/P&gt;&lt;P&gt;You have for the Headers section: &lt;/P&gt;&lt;P&gt;"Content-Type" "multipart/form-data" &lt;/P&gt;&lt;P&gt;"submit" "1" &lt;/P&gt;&lt;P&gt;"upfile" "C:\XXXXXX\YYYY.csv" &lt;/P&gt;&lt;P&gt;Method: POST &lt;/P&gt;&lt;P&gt;And the appropriate authentication.&lt;/P&gt;&lt;P&gt;In addition to that, here is a tfilefetch component which can also send a file.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 03:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHttpRequest-POST-multipart-form-data/m-p/2344475#M112124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T03:20:11Z</dc:date>
    </item>
  </channel>
</rss>

