"cfhttp connection failure" error
Selam, I can't figure out why the cfhttp tag keeps giving me the "connection failure" error. I am trying to download a file from another site. It worked for me briefly once. I even tried higher requesttimeout?? to no avail. What's strange is small part of the file is downloaded before the connection failure. Nothing changed on the server. If you guys don't have the solution I am going to resort to a perl cgi call to do the job. Thank you, __ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
CFHTTP connection failure error
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! My CF code template is as below: === #content# #cfcatch.Message##cfcatch.Detail# == 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:316000 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFHTTP connection failure error
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 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! My CF code template is as below: === #content# #cfcatch.Message##cfcatch.Detail# == 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
RE: CFHTTP connection failure error
Never seen that one before. But here's a shot in the dark. Any chance you're trying to connect to a secure url (https)? There is a known issue where cfhttp does not support certain implementations and therefore the certificate gets rejected. You could try using CFHTTP5 at the tag store. They have a free eval version so you can at least test to see if it fixes the problem. http://www.cftagstore.com/tags/cfxhttp5.cfm --Jeff From: Hitesh Patel [EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 5:06 PM To: cf-talk Subject: CFHTTP connection failure error 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! My CF code template is as below: === #content# #cfcatch.Message##cfcatch.Detail# == 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:316001 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFHTTP connection failure error
I've had this issue before. The way I solved it was to not use CFHTTP. Since you are using a winbox, this method should work fine. http://google.com";> You can find documentation on the methods that MSXML2.ServerXMLHTTP provides at: http://msdn.microsoft.com/en-us/library/ms762278(VS.85).aspx Let me know how it turns out! Cheers! > 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! > value="deflate;q=0"> > > > My CF code template is as below: > === > > > > > throwonerror="yes" resolveurl="yes"> > value="deflate;q=0"> > > > > > #content# > > #cfcatch.Message##cfcatch.Detail# > > > > == 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:316043 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4