I believe that the HTTP 1.1 specification recommends, but does not require, that the 
url, cookie, and form posts be URL encoded.  ColdFusion 4.5.x did not conform to the 
recommendations, but ColdFusion 5.0 does. Check the content-type header on the HTTP 
Request, I believe its CONTENT_TYPE=application/x-www-form-urlencoded.

The workaround is to operate on the name/value pairs with some implementation of 
urldecode() on the receiving end.  



-----Original Message-----
From: Bud [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 7:20 PM
To: CF-Talk
Subject: CFHTTP still and again


OK. Macromedia convinced me that they did the correct thing with CF 
5.0 and fixed cfhttp to be http 1.1 compliant by encoding the form 
variables. Now I've hit a snag where I'm submitting form variables in 
CF 5 and the variables are being encoded along with the values.

Example, the body of the post, which should look like this (according 
to the payment gateway tech folks)...

&Field_1=value1&Field_2=value2

looks like this...

&Field%5F1=value1&Field%5F2=value2

Note the underscores are being url encoded.

So which is right? Should the entire POST be encoded or just the 
values? The tech folks say they have NEVER received a form post with 
the variable names encoded before.

Thanks for any insight.
-- 

Bud Schneehagen - Tropical Web Creations, Inc.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Web Based Solutions / eCommerce Development & Hosting http://www.twcreations.com/ - 
http://www.cf-ezcart.com/ 954.721.3452 - Toll Free: 877.207.6397 - Fax: 954.721.7493 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to