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
Timeout for HTTPRequest
Moderators: JRL, Dorian (MJT support)
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
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]
[email protected]
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
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.
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.