> sometime after IIS was patched recently on our host's server
> something went awry with CFHTTP... it's hard to explain...
> basically, when a CFHTTPPARAM value contains an ampersand ('&'),
> and the CFHTTP is POSTed to the CF server, the receiving CF
> template (fusebox, but this applies to standard templates too)
> gets very confused abut field names, and values, specifically,
> it takes the text in the _VALUE_ after the ampersand and thinks
> that is a field name. Obviously this is bad. I have tested this
> with our systems... here are the results...
>
> Apache & CF5 = normal
> IIS 4 (latest patch level) & CF4.5 = broken
> IIS 5 (latest patch level) & CF5 = normal
>
> Now I initially thought this would be an IIS problem, because I'm
> not fond of IIS really. But I setup a standard form which did the
> same thing as CFHTTP, that is posted the data to the receiving
> template, and it worked OK where CFHTTP didn't.
>
> I'm sure that the problem hasn't ALWAYS existed with IIS and 4.5
> because I have only been made aware of it now as there have been 3
> failures of this particular bit of code in the last 2 weeks and no
> similar failures in the 8 months since it was brought online. Anybody
> got any idea what could be the problem, or more importantly how I can
> work around it ??
As a workaround, you might try using the XMLFormat or URLEncodedFormat
functions to escape the ampersands in your data. My guess is that this
doesn't have anything to do with IIS, but rather with how CF 4.5 builds an
HTTP POST request.
Within an HTTP POST, name-value pairs are separated with ampersands, so if
the data contains ampersands, those have to be escaped.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists