Hi all,

Having some problems with trying to catch an error when my http post times out.

I have followed the livedocs and included a try and catch statement however 
when it times out I get an white page with error 500 tag exceeded etc.... I 
assumed that a try statement would overrule any error system CF had in place. 
how can I solve this? thanks :) 

what i am using is below...
<cftry>
<cfhttp method="get" url="http://www.somedomainhere.com"; throwonerror="yes" 
resolveurl="no" timeout="200">
  <cfhttpparam type="Formfield" value="#CartItems#" name="CartItems">
  <cfhttpparam type="Formfield" value="#GetCustomer.name#" name="name">
  <cfhttpparam type="Formfield" value="#GetCustomer.company#" name="company">
  <cfhttpparam type="Formfield" value="#GetCustomer.address1#" name="address1">
  <cfhttpparam type="Formfield" value="#GetCustomer.address2#" name="address2">
  <cfhttpparam type="Formfield" value="#GetCustomer.address3#" name="address3">
  <cfhttpparam type="Formfield" value="#GetCustomer.city#" name="city">
  <cfhttpparam type="Formfield" value="#GetCustomer.county#" name="county">
  <cfhttpparam type="Formfield" value="#GetCustomer.post_code#" 
name="post_code">
  <cfhttpparam type="Formfield" value="#GetCustomer.county#" name="county">
  <cfhttpparam type="Formfield" value="#GetCustomer.tel#" name="tel">
  <cfhttpparam type="Formfield" value="#GetCustomer.fax#" name="fax">
  <cfhttpparam type="Formfield" value="#GetCustomer.mobile#" name="mobile">
  <cfhttpparam type="Formfield" value="#GetCustomer.email#" name="email">
</cfhttp>
<cfcatch type="any">
<p>custom time out message</p>
</cfcatch>
</cftry> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:318975
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to