×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Has anyone had success scripting cURL to execute in an IBM i CL Program?
I have a project to access a Vendor Web Site using cURL to upload a file,
wait till the file is processed and download a resulting file.
I have been provided the cURL Commands for the process.
I've enetered cURL command through a QP2TERM Terminal Session and had
success uploading the data file.
Now I need to script the cURL Command to run from an IBM i CL Program.
The upload command is as follows:
curl -v
https://vendorurl.net/import -u'Noreply@xxxxxxxxxxx:Password' -F
data=@/temp/uploaddata_20210226.csv > /response/response_20210226.json
I believe the problem is caused by the User Id & Password being enclosed
in single quotes.
I've written many dynamic SQL Statements in RPGLE and substituted
parameters in CL Program,
but none of my methods for quoting a string have worked.
Any advice would be appreciated.
Thanks,
Michael Fulmer
As an Amazon Associate we earn from qualifying purchases.