Re: USPS test 400 Bad Request

2005-09-13 Thread Stan Winchester
Using URLEncodedFormat around the XML fixed the problem! > I have been pulling my hair out [at least what is left] trying to get > this USPS rate calculation test to work on BD JX 6.2 as this is my > main development platform. I thought to try it on CF and see what > happens and it fails on CF5

Re: USPS test 400 Bad Request

2005-09-13 Thread Stan Winchester
I have been pulling my hair out [at least what is left] trying to get this USPS rate calculation test to work on BD JX 6.2 as this is my main development platform. I thought to try it on CF and see what happens and it fails on CF5, but works on CFMX 6.1. So here are three links to show my test r

Re: USPS test 400 Bad Request

2005-09-13 Thread Stan Winchester
Thanks for testing! I now have something to talk USPS about knowing the code works fine. > I replaced USERID and PASSWORD with mine, your code worked fine. > Here is what I got in the cfhttp.FileContent > > Express2077020852100 ontainer>NoneREGULAR133. > 65 > > > code used to t

RE: USPS test 400 Bad Request

2005-09-13 Thread Hua Wei
ular -Original Message- From: Stan Winchester [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 2:40 PM To: CF-Talk Subject: Re: USPS test 400 Bad Request After looking at your example, I see I posted the wrong test snippet. I should have po

Re: USPS test 400 Bad Request

2005-09-13 Thread Stan Winchester
ppingapis.com/ShippingAPITest. > dll?API=RateV2&XML=#USPSRequest# > > Hua > > -Original Message- > From: Stan Winchester [mailto:[EMAIL PROTECTED] > Sent: Monday, September 12, 2005 8:28 PM > To: CF-Talk > Subject: USPS test 400 Bad Request > > Any id

RE: USPS test 400 Bad Request

2005-09-13 Thread Hua Wei
I think the url of the cfhttp should look like this: http://testing.shippingapis.com/ShippingAPITest.dll?API=RateV2&XML=#USPSRequest# Hua -Original Message- From: Stan Winchester [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 8:28 PM To: CF-Talk Subject: USPS test 400

RE: USPS test 400 Bad Request

2005-09-13 Thread Russ
inchester [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:41 AM To: CF-Talk Subject: Re: USPS test 400 Bad Request Yes I have tried post, and tried cfhttpparam before I started this thead. I even asked the techie from USPS about the limitations on url strings, and he said that is the way th

Re: USPS test 400 Bad Request

2005-09-12 Thread Stan Winchester
gt;From: Stan Winchester [mailto:[EMAIL PROTECTED] >Sent: Monday, September 12, 2005 8:38 PM >To: CF-Talk >Subject: Re: USPS test 400 Bad Request > >I thought so too, but they only accept "get". > >p

RE: USPS test 400 Bad Request

2005-09-12 Thread Russ
: Monday, September 12, 2005 8:38 PM To: CF-Talk Subject: Re: USPS test 400 Bad Request I thought so too, but they only accept "get". >Maybe they don't' accept get requests? I'm assuming you need to use >method="Post" and post the xml there... > >--

Re: USPS test 400 Bad Request

2005-09-12 Thread Stan Winchester
Monday, September 12, 2005 8:28 PM >To: CF-Talk >Subject: USPS test 400 Bad Request > >Any ideas why when I do a test to the USPS test server I get a "400 Bad >Request"? > >I have taken the sample code and cut and pasted it, then sent is via cfhttp >as shown

RE: USPS test 400 Bad Request

2005-09-12 Thread Russ
Maybe they don’t' accept get requests? I'm assuming you need to use method="Post" and post the xml there... -Original Message- From: Stan Winchester [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 8:28 PM To: CF-Talk Subject: USPS test 400 Bad Request

USPS test 400 Bad Request

2005-09-12 Thread Stan Winchester
Any ideas why when I do a test to the USPS test server I get a "400 Bad Request"? I have taken the sample code and cut and pasted it, then sent is via cfhttp as shown below: PRIORITY1002220008105Flat Rate BoxREGULAR Thank you, Aftershock Web Design, Inc. by: Stan Winchester President/Developer