Member since
04-03-2020
2
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1874 | 04-03-2020 04:00 AM |
04-03-2020
04:00 AM
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 more
04-03-2020
02:58 AM
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.
... View more
Labels:
- Labels:
-
Apache NiFi