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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222577
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

Reply via email to