Has DNS changed since you last rebooted your CF server? Java (and therefore CF) caches DNS lookups FOREVER or until CF reboots-- whichever comes first.
I'm not following why you need a host file entry to access these sites. If DNS is not your problem then it seems that there are some firewall restrictions limiting the access your CF server has to the outside world, or the remote server is refusing connections from your CF server for some reason. What if you open up telnet ON YOUR CF SERVER and connect to port 80 of the remote server and issue a get HTTP command? If that works, CFHTTP *should* work as the only difference at that point should just be the headers. ~Brad -------- Original Message -------- Subject: CFHTTP connection failure error From: Hitesh Patel <[EMAIL PROTECTED]> Date: Wed, November 26, 2008 4:06 pm To: cf-talk <[email protected]> I am writing to describe CFHTTP issue. There is a WINDOWS 2003, IIS 6.0 and ColdFusion 8 is on the server. Right now if I have to make any CFHTTP call from the server to my client URL (assume client URL is hosted to anywhere in the world) I must need to add that remote URL entry in server HOSTS file...it's really a panic because I have to do this for my every NEW client URL. CASE 1 (Client URL is NOT mapped in the server's HOSTS file) 1) I can't access client REMOTE URL from the server using IE browser but can access any other site for example http://www.google.com in the IE browser. 2) I can ping client remote URL and that was OK. 3) When I try to connection to client remote URL using CFHTTP I get an error like "Connection Failure : Status code unavailable". CASE 2 (Client URL is mapped in the server's HOSTS file) EVERYTHING IS OK. Now, I have added following code within CFHTTP but no luck! <cfhttpparam type="Header" name="Accept-Encoding" value="deflate;q=0"> <cfhttpparam type="Header" name="TE" value="deflate;q=0"> My CF code template is as below: =============================== <cfset previewUrl = {my client URL}> <cfset url.id = XXXXXXX> <cftry> <cfhttp method="Get" url="#previewUrl#?id=#url.id#&from=direct" throwonerror="yes" resolveurl="yes"> <cfhttpparam type="Header" name="Accept-Encoding" value="deflate;q=0"> <cfhttpparam type="Header" name="TE" value="deflate;q=0"> </cfhttp> <cfset content = cfhttp.FileContent> <cfoutput>#content#</cfoutput> <cfcatch> <cfoutput>#cfcatch.Message#<br />#cfcatch.Detail#</cfoutput> </cfcatch> </cftry> ====== CF template ends Can anybody advise me as I DO NOT WANT TO DO MAPPING in HOSTS file at all? I mean CFHTTP should function properly without HOSTS files mapping. Thanks a lot in advance. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316002 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

