Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Download File from URL using invokeHTTP

avatar

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.

3 REPLIES 3

avatar

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

avatar

What is changed in the url

avatar

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.