- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
InvokeHTTP not downloading a simple file
- Labels:
-
Apache NiFi
Created on
‎04-03-2020
02:58 AM
- last edited on
‎04-03-2020
03:58 AM
by
VidyaSargur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎04-03-2020 04:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎04-03-2020 04:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
