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 [INFO] -- Access Manager: This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222578 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

