J
joshreimer
Guest
I'm trying to do a GET using Curl via OS-COMMAND. When my program runs on an appserver, I have to escape my ampersands using ^. This is documented here: Progress KB - URL is truncated when used as parameter with OS-Command But when my program runs on a web broker, the ^ is not recognized as an escape character and it makes the URL incorrect. Why are they different? Can I count on appservers to always need the escape character and web brokers to always not need it? This will be deployed on many different servers and it's not possible to test each one. Here is what I am passing to OS-COMMAND: \\pathtocurl\curl.exe -X GET -H "Content-Type: application/json" -H "Authorization: Bearer tokenabc123" -s -i -v --stderr "C:\logfile.err" -o "C:\data.rec" " url.com/endpoint Or (with the escape character): \\pathtocurl\curl.exe -X GET -H "Content-Type: application/json" -H "Authorization: Bearer tokenabc123" -s -i -v --stderr "C:\logfile.err" -o "C:\data.rec" " url.com/endpoint Thank you!
Continue reading...
Continue reading...