J
joshreimer
Guest
Sorry, it looks like my examples both got cut off at the question mark part of the url. The forum doesn't seem to let me preview my post -- it just disappears until a moderator approves it. Both the web broker and appserver are on windows (though that won't necessarily be the case in every deployed environment). OPSYS returns "WIN32". I tested web brokers on two different machines (both WIN32) and neither one works with the escape character. The tilde escape character doesn't work because the code is running in the cmd shell, not in 4gl. A single tilde doesn't show up in the string that gets passed to the shell so it doesn't change anything. With a double tilde, one of them gets through to the shell and is included in the URL, which then gives me the wrong data. Here is my example again. I'll spell out the question mark and ampersand this time and hopefully nothing will get cut off. The example with the caret would be the same except with a caret before the ampersand. \\pathtocurl\curl.exe -X GET -H "Content-Type: application/json" -H "Authorization: Bearer mytoken" -s -i -v --stderr "C:\log.err" -o "C:\data.rec" " https://api.com/endpoint [questionmark] param1=abc [amp] param2=123" Thank you!
Continue reading...
Continue reading...