Timeout for HTTPRequest

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
E Coli

Timeout for HTTPRequest

Post by E Coli » Sun Aug 17, 2003 4:19 pm

Hi all,

Thanks for your help in the past. I have yet another question. One of my MacroScheduler projects involves using it as a webspider. I basically put MS in a loop and HTTPRequest for each value in the loop. Sometimes, I run across a page that loads REALLY slow, but doesn't give me a "file not found" error. When that happens, it seems to throw MS out of whack. I'm assuming it keeps waiting and waiting for a response that never comes. Is there any way to put a timeout on the HTTPRequest, so that if a response doesn't come in a reasonable amount of time, say 10 seconds, that it will kill that particular request and move on to the next one?

Once again, thanks for your help!

Eric

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Mon Feb 28, 2005 8:14 pm

Hi folks!

This one never got an answer, and now I have the same question. Does HTTPRequest> have a timeout, or is it possible to implement one?

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Wed Mar 02, 2005 7:02 pm

Am I missing something obvious about HTTPRequest> :?

I need to give someone a macro that grabs data off a web site, but I very concerned with it just hanging if the site loads very slowly.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Mar 02, 2005 7:29 pm

HTTPRequest doesn't have a timeout option yet. I've made a feature request note in bugtracker to look at this for the next release if possible.

In the mean time there are alternatives to HTTPRequest. There's using IE in VBscript or XMLHTTP. See this topic for info and examples:
http://www.mjtnet.com/forum/viewtopic.php?t=1655
MJT Net Support
[email protected]

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Wed Mar 02, 2005 7:54 pm

Thank you once again!

I was trying to switch from calling WGET http://allserv.ugent.be/~bpuype/wget/ which has the advantage of a bunch of timeout options, but then you have the extra steps of working with a file.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts