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
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
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
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
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
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
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
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
: 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...
>
>--
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
Maybe they dont' 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
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
12 matches
Mail list logo