<?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>question InvokeHTTP not downloading a simple file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-not-downloading-a-simple-file/m-p/293235#M216562</link>
    <description>&lt;P&gt;I am trying to get the InvokeHTTP processor to download a csv, the URL is&amp;nbsp;&lt;A href="http://www.mambiente.madrid.es/opendata/horario.csv" target="_blank" rel="noopener"&gt;http://www.mambiente.madrid.es/opendata/horario.csv&lt;/A&gt;&amp;nbsp;. Problem is, no matter what the options are in the processor, the response is always a 403 error. If I set the "Always Output Response" to true, the response body is:&lt;/P&gt;
&lt;P&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;403 Forbidden&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;h1&amp;gt;Forbidden&amp;lt;/h1&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;You don't have permission to access /opendata/horario.csv&lt;BR /&gt;on this server.&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;hr&amp;gt;&lt;BR /&gt;&amp;lt;address&amp;gt;Apache/2.2.22 (Ubuntu) Server at &lt;A href="http://www.mambiente.madrid.es" target="_blank" rel="noopener"&gt;www.mambiente.madrid.es&lt;/A&gt; Port 80&amp;lt;/address&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing is, a simple "curl --request GET&amp;nbsp;&lt;A href="http://www.mambiente.madrid.es/opendata/horario.csv" target="_blank" rel="noopener"&gt;http://www.mambiente.madrid.es/opendata/horario.csv&lt;/A&gt;" works just fine, so I have no idea what the problem is.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 10:58:09 GMT</pubDate>
    <dc:creator>Pckjb</dc:creator>
    <dc:date>2020-04-03T10:58:09Z</dc:date>
    <item>
      <title>InvokeHTTP not downloading a simple file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-not-downloading-a-simple-file/m-p/293235#M216562</link>
      <description>&lt;P&gt;I am trying to get the InvokeHTTP processor to download a csv, the URL is&amp;nbsp;&lt;A href="http://www.mambiente.madrid.es/opendata/horario.csv" target="_blank" rel="noopener"&gt;http://www.mambiente.madrid.es/opendata/horario.csv&lt;/A&gt;&amp;nbsp;. Problem is, no matter what the options are in the processor, the response is always a 403 error. If I set the "Always Output Response" to true, the response body is:&lt;/P&gt;
&lt;P&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;403 Forbidden&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;h1&amp;gt;Forbidden&amp;lt;/h1&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;You don't have permission to access /opendata/horario.csv&lt;BR /&gt;on this server.&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;hr&amp;gt;&lt;BR /&gt;&amp;lt;address&amp;gt;Apache/2.2.22 (Ubuntu) Server at &lt;A href="http://www.mambiente.madrid.es" target="_blank" rel="noopener"&gt;www.mambiente.madrid.es&lt;/A&gt; Port 80&amp;lt;/address&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing is, a simple "curl --request GET&amp;nbsp;&lt;A href="http://www.mambiente.madrid.es/opendata/horario.csv" target="_blank" rel="noopener"&gt;http://www.mambiente.madrid.es/opendata/horario.csv&lt;/A&gt;" works just fine, so I have no idea what the problem is.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 10:58:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-not-downloading-a-simple-file/m-p/293235#M216562</guid>
      <dc:creator>Pckjb</dc:creator>
      <dc:date>2020-04-03T10:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP not downloading a simple file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-not-downloading-a-simple-file/m-p/293237#M216563</link>
      <description>&lt;P&gt;I downloaded the file from a browser and used the developer tools to see what the headers where, and then set them as attributes in the processor itself. Now everything works fine.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 11:00:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-not-downloading-a-simple-file/m-p/293237#M216563</guid>
      <dc:creator>Pckjb</dc:creator>
      <dc:date>2020-04-03T11:00:25Z</dc:date>
    </item>
  </channel>
</rss>

