<?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: handling redirect in tFileFetch in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/handling-redirect-in-tFileFetch/m-p/2215222#M11724</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Can you try fetching from the location where you are redirected?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I've tried it, but the server insists on the redirect:&lt;BR /&gt;&lt;PRE&gt;There isContinue_tFileFetch_1 an exception on: http://datafeed.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5&lt;BR /&gt;java.lang.Exception: Method failed: HTTP/1.1 405 Not Allowed&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.tFileFetch_1Process(tickdownloader.java:504)&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.runJobInTOS(tickdownloader.java:907)&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.main(tickdownloader.java:764)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;For now, I'm playing a bit with this (execute externally), but there must be a "Talend way" to do this ... plus: there is still the referrer problem if I use the result of this:&lt;BR /&gt;&lt;PRE&gt;$ URL=https://www.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5&lt;BR /&gt;$ curl -w "%{url_effective}\n" -I -L -s -S $URL -o /dev/null&lt;BR /&gt;http://datafeed.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Sep 2016 10:38:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-30T10:38:58Z</dc:date>
    <item>
      <title>handling redirect in tFileFetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/handling-redirect-in-tFileFetch/m-p/2215220#M11722</link>
      <description>Hi, I'm trying to use tFileFetch in order to download 
&lt;A href="https://www.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5&lt;/A&gt; 
&lt;BR /&gt;In a browser it first gives me back a HTTP/1.1 301 Moved Permanently and then redirects me to the download and sends the file right after. 
&lt;BR /&gt;The problem is that tFileFetch refuses to download that file. How can I accomplish that? 
&lt;BR /&gt; 
&lt;PRE&gt;Starte Job tickdownloader am 00:44 30/09/2016.&lt;BR /&gt; connecting to socket on port 3985&lt;BR /&gt; connected&lt;BR /&gt;There isContinue_tFileFetch_1 an exception on: https://www.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5&lt;BR /&gt;java.lang.Exception: Method failed: HTTP/1.1 301 Moved Permanently&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.tFileFetch_1Process(tickdownloader.java:504)&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.runJobInTOS(tickdownloader.java:907)&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.main(tickdownloader.java:764)&lt;BR /&gt;&lt;BR /&gt; disconnected&lt;BR /&gt;Job tickdownloader endet am 00:44 30/09/2016. &lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you in advance for your advice</description>
      <pubDate>Thu, 29 Sep 2016 23:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/handling-redirect-in-tFileFetch/m-p/2215220#M11722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T23:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: handling redirect in tFileFetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/handling-redirect-in-tFileFetch/m-p/2215221#M11723</link>
      <description>Can you try fetching from the location where you are redirected?</description>
      <pubDate>Fri, 30 Sep 2016 04:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/handling-redirect-in-tFileFetch/m-p/2215221#M11723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-30T04:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: handling redirect in tFileFetch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/handling-redirect-in-tFileFetch/m-p/2215222#M11724</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Can you try fetching from the location where you are redirected?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I've tried it, but the server insists on the redirect:&lt;BR /&gt;&lt;PRE&gt;There isContinue_tFileFetch_1 an exception on: http://datafeed.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5&lt;BR /&gt;java.lang.Exception: Method failed: HTTP/1.1 405 Not Allowed&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.tFileFetch_1Process(tickdownloader.java:504)&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.runJobInTOS(tickdownloader.java:907)&lt;BR /&gt;	at local_project.tickdownloader_0_1.tickdownloader.main(tickdownloader.java:764)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;For now, I'm playing a bit with this (execute externally), but there must be a "Talend way" to do this ... plus: there is still the referrer problem if I use the result of this:&lt;BR /&gt;&lt;PRE&gt;$ URL=https://www.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5&lt;BR /&gt;$ curl -w "%{url_effective}\n" -I -L -s -S $URL -o /dev/null&lt;BR /&gt;http://datafeed.dukascopy.com/datafeed/USA30IDXUSD/2016/07/12/15h_ticks.bi5&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Sep 2016 10:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/handling-redirect-in-tFileFetch/m-p/2215222#M11724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-30T10:38:58Z</dc:date>
    </item>
  </channel>
</rss>

