House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Postponing a cfhttp request

  << Previous Post |  RSS |  Tree View |  Sort Oldest First |  Subscribe to this Group Next >> 

Postponing a cfhttp request

Why not just invoke a CFC to do the cfhttp call? That can happen Greg Luce 04/28/2004 04:43 PM
----- Excess quoted text cut - see Original Post for more ----- Philip Arnold 04/28/2004 04:32 PM
That sounds reasonable.. I definitely do not want the cfhttp result returned David Fafard 04/28/2004 04:31 PM
What about the "timeout" parameter of the <cfhttp> tag?  I've Ian Skinner 04/28/2004 04:15 PM
<cfflush> is a tag the list helped me with recently. 04/28/2004 03:46 PM
You wrote: Larry Lyons 04/28/2004 03:15 PM
Hello. David Fafard 04/28/2004 03:03 PM

04/28/2004 04:43 PM
Author: Greg Luce Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32210#161646 Why not just invoke a CFC to do the cfhttp call? That can happen regardless of the page request that's going on. Are you on CFMX? Greg Hello. I have a page on our public facing server that has a call to a cfhttp page on our internal LAN. The problem I am having is the delay users are getting while this page is getting called/executed. There is no need for the user to be delayed while this "post process" is going on. The remote cfhttp page on my internal LAN has some database updates and inserts. Is there an argument that will allow the remote page on the internal LAN to process while avoiding the delay my users are experiencing on the public site? I just want this page to execute after the users submits a page.. but they do not need to wait while it executes. Thanks, Dave
04/28/2004 04:32 PM
Author: Philip Arnold Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32210#161639 ----- Excess quoted text cut - see Original Post for more ----- A couple of thoughts Does the Intranet version need to be updated as soon as the user hits Submit? If not, then you could store the relevant information on the server and then have a scheduled task running which CFHTTPs the info to the Intranet server every 15 minutes or so That way, the user gets immediate response, and the Intranet is updated when the server gets the chance to do it What happens if the Intranet server's connection is down? Using an immediate CFHTTP can be dangerous as your data might not be transferred at all, so you'd have to express this to the user unless you schedule it for later If you timeout your request, it fails completely, so the user's data never made it to the Intranet server
04/28/2004 04:31 PM
Author: David Fafard Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32210#161637 That sounds reasonable.. I definitely do not want the cfhttp result returned to the page it is on, I just want it to fire "post process"... if that makes sense. I will try the timeout attribute, thanks. Dave   What about the "timeout" parameter of the <cfhttp> tag?  I've only used <cfhttp> once, so by no means am I an expert, but I would think that if you set the "timeout" value to a low number, maybe even 0, then you use a <cftry><cfcatch> block around the <cfhttp> to trap the timeout error and ignore it - should work.     I would defer to the more knowledgeable member of this group if I am completely off my rocker.   --------------   Ian Skinner   Web Programmer   BloodSource   www.BloodSource.org   Sacramento, CA   "C code. C code run. Run code run. Please!"        - Cynthia Dunning
04/28/2004 04:15 PM
Author: Ian Skinner Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32210#161633 What about the "timeout" parameter of the <cfhttp> tag?  I've only used <cfhttp> once, so by no means am I an expert, but I would think that if you set the "timeout" value to a low number, maybe even 0, then you use a <cftry><cfcatch> block around the <cfhttp> to trap the timeout error and ignore it - should work.   I would defer to the more knowledgeable member of this group if I am completely off my rocker. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!"      - Cynthia Dunning
04/28/2004 03:46 PM
Author: Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32210#161627 <cfflush> is a tag the list helped me with recently. It may help your problem. Hello. I have a page on our public facing server that has a call to a cfhttp page on our internal LAN. The problem I am having is the delay users are getting while this page is getting called/executed. There is no need for the user to be delayed while this "post process" is going on. The remote cfhttp page on my internal LAN has some database updates and inserts. Is there an argument that will allow the remote page on the internal LAN to process while avoiding the delay my users are experiencing on the public site? I just want this page to execute after the users submits a page.. but they do not need to wait while it executes. Thanks, Dave   _____  
04/28/2004 03:15 PM
Author: Larry Lyons Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32210#161621 You wrote: ----- Excess quoted text cut - see Original Post for more ----- Dave, If you can use a hidden frame, try to send the form submission to the hidden frame page and send a JS relocation to some other page in the visible frame. That way the processing can go on in the background while the user does other activities. Since its using a hidden frame the user may not notice whether anything else is happening in the background. hth, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection email: llyons(at)atcc(dot)org tel: 703.365.2700.2678 --
04/28/2004 03:03 PM
Author: David Fafard Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32210#161620 Hello. I have a page on our public facing server that has a call to a cfhttp page on our internal LAN. The problem I am having is the delay users are getting while this page is getting called/executed. There is no need for the user to be delayed while this "post process" is going on. The remote cfhttp page on my internal LAN has some database updates and inserts. Is there an argument that will allow the remote page on the internal LAN to process while avoiding the delay my users are experiencing on the public site? I just want this page to execute after the users submits a page.. but they do not need to wait while it executes. Thanks, Dave
<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference