Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

InvokeHTTP not downloading a simple file

avatar
New Contributor

I am trying to get the InvokeHTTP processor to download a csv, the URL is http://www.mambiente.madrid.es/opendata/horario.csv . 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:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /opendata/horario.csv
on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at www.mambiente.madrid.es Port 80</address>
</body></html>

 

Thing is, a simple "curl --request GET http://www.mambiente.madrid.es/opendata/horario.csv" works just fine, so I have no idea what the problem is.

1 ACCEPTED SOLUTION

avatar
New Contributor

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.

View solution in original post

1 REPLY 1

avatar
New Contributor

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.