Perhaps ask them for some sample code... or use their desktop tool, and
sniff the requests that it's doing (perhaps using something like
proxomitron).  Also try using
cfhttp url="someurl" method="get" redirect="no" 
What I notice a lot of times is that the request gets redirected to a
different page, and you never see the response or the cookies that you need
from the original request.  This might not be an issue with this, as it's
meant to be some kind of web service or something, but it's worth a try.  

Also is there perhaps some way that the xml needs to be encoded?  Maybe
URLEncodedFormat, if it's being sent as a url string?

Maybe you can provide an excerpt from the usps manual where it tells you how
these requests are to be structured.  That might shed some light on this.  

Russ

-----Original Message-----
From: Stan Winchester [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 they do it. Maybe only certain browsers have the 255
character limitation. I think it rather strange too to use url strings to
pass a bunch of xml.

>I kinda doubt it... since get is a url post... theoretically you can only
>post up to 255 characters in a get request... Have you tried post?  Have
you
>tried actually sending your xml in through a cfhttpparam?
>
>
>
>-----Original Message-----
>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
>>Destination>20008</ZipDestination><Pounds>10</Pounds><Ounces>5</Ounces><Co
n
>t
>>ainer>Flat Rate
>>Box</Container><Size>REGULAR</Size></Package></RateV2Request></cfsaveconte
n
>t



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:218014
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to