firestorm69
08-20-2001, 06:33 PM
I am attempting to write a script for using UPS Online Tools. The script makes an https connection to UPS's server and is supposed to send info to them and then they send a response. It's used for giving site visitors live UPS shipping rates. It's the "XML Rates and Services Tool".
Well here's the prob, the docs totally suck, and I was wondering if anyone has had any experience with implementing this on any of their sites. I am writing the script in CGI and I make the connection to UPS with no problem.. But when I send the info using POST and structured like they tell me to in the docs, I get a "Content Wrong Type" error..
If anyone has any experience with this and can send me an example of the entire request that UPS is expecting, I will greatly appriciate it! By entire request I mean everything from the "POST /blahblah HTTP/1.0" line to the format of the body of the request. How all the info I am sending is supposed to look.. I fired off an email this morning to them, but they didn't repond yet, and this is a time crunched issue..
Thanks in advance to anyone who can help!
Well here's the prob, the docs totally suck, and I was wondering if anyone has had any experience with implementing this on any of their sites. I am writing the script in CGI and I make the connection to UPS with no problem.. But when I send the info using POST and structured like they tell me to in the docs, I get a "Content Wrong Type" error..
If anyone has any experience with this and can send me an example of the entire request that UPS is expecting, I will greatly appriciate it! By entire request I mean everything from the "POST /blahblah HTTP/1.0" line to the format of the body of the request. How all the info I am sending is supposed to look.. I fired off an email this morning to them, but they didn't repond yet, and this is a time crunched issue..
Thanks in advance to anyone who can help!
