<?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: [resolved] POSTing a file to a website in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318867#M89170</link>
    <description>Hi aiclara,&lt;BR /&gt;I need to to do the same thing as you did. Can you show me how to use tFileFetch instead of tHttpRequest?&lt;BR /&gt;Thanks.</description>
    <pubDate>Fri, 22 Feb 2013 23:02:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-22T23:02:15Z</dc:date>
    <item>
      <title>[resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318854#M89157</link>
      <description>Hi everyone!
&lt;BR /&gt;I've got a task which I'd love to use TOS for but I can't for the life of me work out how to accomplish it.
&lt;BR /&gt;There is a website (protected by apache basic auth) which requires me to POST a file (which happens to be a CSV). I can manage the first bit - getting the data, but I'm not sure about the second and third bits, namely forming this data into a CSV file and then using HTTP POST to send it to this other website.
&lt;BR /&gt;For those that know Perl, here is a snippet of the code we have which is doing what I'd like TOS to do:
&lt;BR /&gt;
&lt;PRE&gt;         &lt;BR /&gt;         my $ua = BrowserUA-&amp;gt;new(&lt;BR /&gt;                 agent =&amp;gt; "Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1",&lt;BR /&gt;         );&lt;BR /&gt;         my $req = POST $url,&lt;BR /&gt;                 "Content-Type" =&amp;gt; 'multipart/form-data',&lt;BR /&gt;                 "Content" =&amp;gt; ,&lt;BR /&gt;                 ];&lt;/PRE&gt;
&lt;BR /&gt;Has anyone got any hints that they can give me? I'm especially confused about the final bit of POSTing to the website as I can't see how to post a file (values aren't IN a file, I want to upload the actual file). I believe the content type above is making this happen, but I can't see how to do this in TOS.
&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Sat, 16 Nov 2024 12:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318854#M89157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318855#M89158</link>
      <description>Hey,&lt;BR /&gt;first of all, what's your source data format?  When these data will be managed to CSV you could use tHttpRequest component which is able to do the POST file over HTTP protocol with custom headers if needed and then write response of the server to file, so you are able to check status of finished POST. This could be really easy, post some source data.&lt;BR /&gt;Ladislav</description>
      <pubDate>Wed, 30 Nov 2011 21:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318855#M89158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-30T21:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318856#M89159</link>
      <description>Hi,
&lt;BR /&gt;Thanks for the reply.
&lt;BR /&gt;For the proof of concept I'm doing, I'm short-cutting the generation of the file for now and I'm focussing only on POSTing the file to the receiving website. To do this, I've just hand-created a CSV file. 
&lt;BR /&gt;I have tried using tHttpRequest - even as the sole component in a job with everything hardcoded. In other words, I had for the Headers section:
&lt;BR /&gt;"Content-Type" "multipart/form-data"
&lt;BR /&gt;"submit" "1"
&lt;BR /&gt;"upfile" "C:\XXXXXX\YYYY.csv"
&lt;BR /&gt;I also set:
&lt;BR /&gt;Method: POST
&lt;BR /&gt;And the appropriate authentication.
&lt;BR /&gt;The job seems to run. It pauses after reporting "connected" (which I assume is my 104 line CSV file being uploaded) and some seconds later reports "disconnected" and exits with a code 0. However, the other system doesn't appear to have picked anything up. 
&lt;BR /&gt;That's currently where I am right now. If you have any advice for me on debugging this (or whether the way I've gone about this is wrong), then please let me know.
&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 01 Dec 2011 08:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318856#M89159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T08:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318857#M89160</link>
      <description>Oh, I forgot to mention that I've tried putting the server response back to a file and the file is 0 bytes....</description>
      <pubDate>Thu, 01 Dec 2011 08:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318857#M89160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T08:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318858#M89161</link>
      <description>A picture is worth 1000 words....</description>
      <pubDate>Thu, 01 Dec 2011 09:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318858#M89161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T09:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318859#M89162</link>
      <description>&lt;P&gt;Well, &lt;BR /&gt;this component comes from my request in the past because I needed it also for my project, take a look at this component tFileHttpPost at &lt;A href="https://exchange.talend.com/#marketplacesearch:gallery=marketplace%252F1&amp;amp;ob=releaseDate&amp;amp;o=0&amp;amp;c=20&amp;amp;d=true&amp;amp;s=tFileHttpPost%2520&amp;amp;f=&amp;amp;tf=&amp;amp;bf=&amp;amp;cat=&amp;amp;title=Search%2520Results" target="_blank" rel="nofollow noopener noreferrer"&gt;https://exchange.talend.com/#marketplacesearch:gallery=marketplace%252F1&amp;amp;ob=releaseDate&amp;amp;o=0&amp;amp;c=20&amp;amp;d=true&amp;amp;s=tFileHttpPost%2520&amp;amp;f=&amp;amp;tf=&amp;amp;bf=&amp;amp;cat=&amp;amp;title=Search%2520Results&lt;/A&gt;&lt;BR /&gt;I do not use custom headers in my scenario except one which indicates that I post text or XML (text/xml) content as you can see at attached picture. Try to change your configuration in a way showed on picture, use "Post parameters from file", this is the attribute which point to file which schould be posted over http.&lt;BR /&gt;Ladislav&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 09:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318859#M89162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T09:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318860#M89163</link>
      <description>I also recommend use wireshark or other network capturing tool. Wireshark support function Follow TCP Stream, so once you find the packet related to your request, using this function wireshark show you whole request response, so you see what was sent and received.&lt;BR /&gt;Ladislav</description>
      <pubDate>Thu, 01 Dec 2011 09:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318860#M89163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318861#M89164</link>
      <description>If nothing from what proposed works, you could write your own subroutine in talend like this:&lt;BR /&gt;&lt;PRE&gt;URL dest = "http://www.mysite.com "; &lt;BR /&gt;URLConnection urlCon = dest.openConnection();&lt;BR /&gt;// prepare input and output &lt;BR /&gt;urlCon.setDoInput(true); &lt;BR /&gt;urlCon.setDoOutput(true);&lt;BR /&gt;// Disable caching &lt;BR /&gt;urlCon.setUseCaches(false);&lt;BR /&gt;// Post output &lt;BR /&gt;DataOutputStream out = &lt;BR /&gt;new DataOutputStream(urlCon.getOutputStream()); &lt;BR /&gt;out.writeBytes( file.toString ); &lt;BR /&gt;out.flush(); &lt;BR /&gt;out.close();&lt;BR /&gt;// return servlet response as a DataInputStream &lt;BR /&gt;DataInputStream in = new DataInputStream(urlCon.getInputStream());&lt;BR /&gt;// and so on&lt;BR /&gt;....&lt;/PRE&gt;&lt;BR /&gt;There is also HTTP Client package provided by Apache Jakarta at &lt;A href="http://hc.apache.org/downloads.cgi" rel="nofollow noopener noreferrer"&gt;http://hc.apache.org/downloads.cgi&lt;/A&gt; which make it easier to work with http.&lt;BR /&gt;Ladislav</description>
      <pubDate>Thu, 01 Dec 2011 09:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318861#M89164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T09:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318862#M89165</link>
      <description>Thanks for your info. I have tried re-doing my job to match more closely like yours but it's exactly the same situation. 
&lt;BR /&gt;I think I need to try WireShark to see what is going on as I get no feedback at all from TOS or the other website. I'd rather not have to write specific code for this, otherwise I will just stick with my Perl script 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 01 Dec 2011 10:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318862#M89165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T10:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318863#M89166</link>
      <description>Wireshark will show the pure traffic, but you could also try to debug Talend session. When starting job from Talend you could use Debug trace or pure debug session to see what's go'in on. Let me know the results...&lt;BR /&gt;Ladislav</description>
      <pubDate>Thu, 01 Dec 2011 10:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318863#M89166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T10:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318864#M89167</link>
      <description>I've solved this!!&lt;BR /&gt;The key was not to use tHttpRequest at all. The correct component to use is tFileFetch. Despite it's name, it can send a file too. Worked straight away, very simple.</description>
      <pubDate>Mon, 05 Dec 2011 09:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318864#M89167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-05T09:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318865#M89168</link>
      <description>Nice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; But still I don't know why the tHttpRequest didn't work for you.</description>
      <pubDate>Mon, 05 Dec 2011 09:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318865#M89168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-05T09:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318866#M89169</link>
      <description>Yep, that is a mystery, and if I needed to POST the file as well as other things, I may well have been stuck. I might look into it one day if I get the time. For now though, I can get on with my project 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 05 Dec 2011 09:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318866#M89169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-05T09:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318867#M89170</link>
      <description>Hi aiclara,&lt;BR /&gt;I need to to do the same thing as you did. Can you show me how to use tFileFetch instead of tHttpRequest?&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 22 Feb 2013 23:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318867#M89170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-22T23:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318868#M89171</link>
      <description>You guysssssss, come on since when can you make a http request to a https URL. Haha lol your missing a whole &amp;nbsp;layer of encryption. If no one has figured it out after a difference of more than 3 years! Cheers.</description>
      <pubDate>Wed, 29 Jun 2016 01:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318868#M89171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-29T01:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] POSTing a file to a website</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318869#M89172</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LL1RAAW"&gt;@aiclara&lt;/A&gt;
&lt;BR /&gt;Hey, this is a pretty old post. By any chance, do have the details of how to use tFileFetch to Upload/Post a file (from my local hard disk) to a web (
&lt;A href="https://clientconn.sharefile.com/share/upload/r773a1b7922e44cca" target="_blank" rel="nofollow noopener noreferrer"&gt;https://clientconn.sharefile.com/share/upload/r773a1b7922e44cca&lt;/A&gt;)</description>
      <pubDate>Mon, 18 Mar 2019 05:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-POSTing-a-file-to-a-website/m-p/2318869#M89172</guid>
      <dc:creator>joe86</dc:creator>
      <dc:date>2019-03-18T05:07:35Z</dc:date>
    </item>
  </channel>
</rss>

