> I am trying to run the following using CF6.1: > <cfhttp > url="http://xmlfeed.laterooms.com/index.aspx?aid=1000&rtype=4&kword=cardiff" > method="get"></cfhttp> but despite > getting status code 200 OK the content is 'Connection Failure'. > > After looking at various threads and articles I've also tried these > suggestion: <cfhttpparam type="Header" name="Accept- > Encoding" value="deflate;q=0"> <cfhttpparam type="Header" name="TE" > value="deflate;q=0"> <cfhttpparam type="Header" > name="Accept-Encoding" value="*"> <cfhttpparam type="header" > name="accept-encoding" value="no-compression" /> > <cfhttpparam type="Header" name="charset" value="utf-8"> and (at the > suggestion of laterooms): <cfhttpparam type="Header" > name="Accept-Encoding" value="none"> all with the same result. > > I've tried using createObject("java", "java.net.URL") to make the connection > and this works without any problem but I want to avoid > this and use cfhttp it it's possible. > > Any suggestions?
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. 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:333001 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm