Support Questions

Find answers, ask questions, and share your expertise

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.