After looking at your example, I see I posted the wrong test snippet. I should 
have posted this one:

<cfsavecontent 
variable="USPSRequest">http://testing.shippingapis.com/ShippingAPITest.dll?API=Rate&XML=<RateRequest
 USERID="xxxxx" PASSWORD="xxxxx"><Package 
ID="0"><Service>Express</Service><ZipOrigination>20770</ZipOrigination><ZipDestination>20852</ZipDestination><Pounds>10</Pounds><Ounces>0</Ounces><Container>None</Container><Size>Regular</Size><Machinable></Machinable></Package></RateRequest></cfsavecontent>

<cfhttp url="#USPSRequest#" method="GET"></cfhttp>

>  
> 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 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:
> 
> <cfsavecontent variable="USPSRequest"><RateV2Request USERID="xxxxx"
> PASSWORD="xxxxx"><Package
ID="0">> <Service>PRIORITY</Service><ZipOrigination>10022</ZipOrigination><Zip
Des> tination>20008</ZipDestination><Pounds>10</Pounds><Ounces>5</Ounces><
> Destination>Cont
> ainer>Flat Rate
Box</Co> ntainer><Size>REGULAR</Size></Package></RateV2Request></cfsavecontent
> >
> 
> <cfhttp url="#USPSRequest#" method="GET"></cfhttp>
> 
> Thank you,
> Aftershock Web Design, Inc.
> by: Stan Winchester
> President/Developer
> [EMAIL PROTECTED]
> http://www.aftershockweb.com/
> Phone 503-244-3440
> Fax 503-244-3454
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218069
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to