- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Download File from URL using invokeHTTP
- Labels:
-
Apache NiFi
Created ‎04-23-2018 08:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to download a generated report from the web , The URL works fine when i use curl -L <'URL'> -o filename.
It does not get the file If this URL placed in attribute remoteURL in invokeHTTP . I tried both GET and POST using invokeHTTP.
Also tried to enclose URL in single quotes, having an option -L and all of them resulted in
"Routing to Failure due to exception: java.net.MalformedURLException: no protocol: "
Appreciate any help in getting this resolved.
Created ‎04-23-2018 08:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://analytics-api.app.lithium.com/api/public/reports/report/423d4f5c-76ed-3edf-9275-7033484070d3/238Iwy7EbE%2BpGQP9P8mae0kDBwUasIwC%2FyLgHrR9C2PrI%3D/download?companyKey=xxx' -o author1.csv
Created ‎04-23-2018 09:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is changed in the url
Created ‎04-23-2018 09:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This URL is give to the application for status request for report generation completion, can not be modified.
However My issue got resolved by setting "Always Output Response" to "true".
Thanks for looking in to it.
