I replaced USERID and PASSWORD with mine, your code worked fine. Here is what I got in the cfhttp.FileContent
<?xml version="1.0"?> <RateResponse><Package ID="0"><Service>Express</Service><ZipOrigination>20770</ZipOrigination><ZipDestination>20852</ZipDestination><Pounds>10</Pounds><Ounces>0</Ounces><Container>None</Container><Size>REGULAR</Size><Zone>1</Zone><Postage>33.65</Postage></Package></RateResponse> ============ code used to test ==== <cfsavecontent variable="requestXML"> http://testing.shippingapis.com/ShippingAPITest.dll?API=Rate&XML=<RateRequest USERID="xxx" PASSWORD="xx"><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> <cfdump var="#tostring(requestXML)#"> <cfhttp method="get" url="#requestXML#" resolveurl="false" timeout="20"> </cfhttp> <cfdump var="#cfhttp#"> <cfdump var="#tostring(cfhttp.FileContent)#"> ================ -----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 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 Des> tination>>< > 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 > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218075 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

