Create a broken-page simulator by creating a new CF page, then adding the Sleep() function (link below) to make your page "unavailable" for a lengthy amount of time.
Call this page with CFHTTP and then catch the timeout errors. You can then simulate a failure of any time period you choose. http://www.cflib.org/udf.cfm?ID=959 M!ke -----Original Message----- From: Munson, Jacob [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 11:21 AM To: CF-Talk Subject: RE: cfhttp timeout That's a good idea. The problem I'm having is actually getting a timeout for testing. I spent a long time last night trying to find a URL that would timeout, and wouldn't you know it if the Internet works PERFECTLY the one time I actually want it to fail. :) > -----Original Message----- > From: Dawson, Michael [mailto:[EMAIL PROTECTED] > Sent: Friday, October 28, 2005 10:12 AM > To: CF-Talk > Subject: RE: cfhttp timeout > > Wrap it with a CFTRY and then CFCATCH the error. In CFHTTP set > THROWONERROR="YES". > > I'm not sure what type of exception is thrown, but you can find that > easily by CFDUMPing the CFCATCH structure. > > M!ke > > -----Original Message----- > From: Munson, Jacob [mailto:[EMAIL PROTECTED] > Sent: Friday, October 28, 2005 11:05 AM > To: CF-Talk > Subject: cfhttp timeout > > So I know I need to set a timeout for a cfhttp, but I'm not sure what > to do if a timeout does occur. Here's what I've got now: > > <cfhttp url="#feedUrl#" method="get" timeout="3"/> <cfif > cfhttp.errorDetail eq ""> > .... > </cfif> > > Do I need to have the cfif to make sure I don't have a timeout, or do > I just use the cfhttp results assuming they're there (and the CF > server takes care of the missing data cases)? All of the examples I > found online didn't have a cfif after the cfhttp. > > TIA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222591 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

