> Whenever you can get to something using your server's web browser, but
> can't get to it via CFHTTP, you can simply examine the HTTP requests
> and responses and see how they differ. Use a recorder of some sort
> (Wireshark, HttpWatch, etc) and see what's different, and change your
> CFHTTP accordingly. It really is as simple as that, in almost all
> cases.

So, I had a minute and decided to test my own advice. Here's what I
got in HttpWatch with IE 8:

GET /index.aspx?aid=1000&rtype=4&kword=cardiff HTTP/1.1
Accept: application/x-ms-application, image/jpeg,
application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap,
application/msword, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/x-shockwave-flash, */*
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; InfoPath.2)
Accept-Encoding: gzip, deflate
Host: xmlfeed.laterooms.com
Connection: Keep-Alive

So, I replicated that in CF and removed the Accept-Encoding header
(since I don't want deflated content), but got the same error.
However, Wireshark shows me that the request and response is going
back and forth, but the data is still being deflated. So, I found
this, which sheds some light on the problem:

http://www.brooks-bilson.com/blogs/rob/index.cfm/2010/1/14/Bug-in-ColdFusion-801-CHF-2-and-3-with-CFHTTP-and-Compressed-HTTP-Response-from-IIS

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333004
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to