- Feb 22, 2005
- 7,280
- 0
- 0
I'm honestly not familiar too much with using curl at all, but I'm stuck trying to troubleshoot this for a pretty big client of ours. Essentially they're trying to use curl on their SunOS based system to access an API of ours, which lets them upload a file with EFT transactions in it to run.
What seems to be happening is that everything after the first variable in the string is being truncated, we've verified this by altering the order of the variables and getting back different errors based on what actually got submitted. The string itself works fine when pasted into IE and submitted, so it has to be on their end. This is what they have so far:
bash-2.05$ /usr/local/bin/curl -s -S -k -m 7 https://www.xxxx.com/scripts/b...022&serviceVersion=1.1
[1] 15668
[2] 15669
[3] 15670
[4] 15671
[2] Done loginUser=xxxx
[3]- Done loginPass=xxxx
[4]+ Done processDate=xxxx
bash-2.05$ <?xml version="1.0" encoding="ISO-8859-1"?>
<response>
<code>3</code>
<message>Service version not supported.</message>
<batch_id>0</batch_id>
</response>
[1]+ Done /usr/local/bin/curl -s -S -k -m 7 https://www.xxxx.com/scripts/b....asp?loginCompany=xxxx
I know it's just a server log, but I"m thinking there's some special option they have to use, like -d, that tells curl to emulate a standard HTTP POST or something, instead of what it's doing now. Any ideas, or any other info needed to help?
Thanks!
What seems to be happening is that everything after the first variable in the string is being truncated, we've verified this by altering the order of the variables and getting back different errors based on what actually got submitted. The string itself works fine when pasted into IE and submitted, so it has to be on their end. This is what they have so far:
bash-2.05$ /usr/local/bin/curl -s -S -k -m 7 https://www.xxxx.com/scripts/b...022&serviceVersion=1.1
[1] 15668
[2] 15669
[3] 15670
[4] 15671
[2] Done loginUser=xxxx
[3]- Done loginPass=xxxx
[4]+ Done processDate=xxxx
bash-2.05$ <?xml version="1.0" encoding="ISO-8859-1"?>
<response>
<code>3</code>
<message>Service version not supported.</message>
<batch_id>0</batch_id>
</response>
[1]+ Done /usr/local/bin/curl -s -S -k -m 7 https://www.xxxx.com/scripts/b....asp?loginCompany=xxxx
I know it's just a server log, but I"m thinking there's some special option they have to use, like -d, that tells curl to emulate a standard HTTP POST or something, instead of what it's doing now. Any ideas, or any other info needed to help?
Thanks!
