Re: Checking the availability of a URL with VBScript
- From: "Joe Fawcett" <joefawcett@xxxxxxxxxxxxxxxx>
- Date: Sun, 6 Aug 2006 12:09:13 +0100
"neilsolent" <neil@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1154860357.919690.77370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am using CreateObject("MSXML2.XMLHTTP.3.0") in A VBScript, whichI can't reproduce, can you show your script?
calls open(), send() etc to check the status of a URL.
The CreateObject() call and all the calls to the object are inside a
loop.
The problem I am having is, the status information is getting cached.
If the web server is up, and the script gets an HTTP 200 status, then
it will always report a 200 status on each following iteration, even
when I stop the web server. The problem seems to be caused by the fact
that the call is being done from the same process (cscript.exe). If I
stop and re-run the script with the web server down, it of course
reports the failure.
Does anyone know a way to clear the state so that this web client gets
the latest status each time?
cheers,
Neil
You might try scheduling the script to run every few minutes instead of just
looping.
--
Joe Fawcett - MVP
http://joe.fawcett.name
.
- Follow-Ups:
- Re: Checking the availability of a URL with VBScript
- From: neilsolent
- Re: Checking the availability of a URL with VBScript
- References:
- Checking the availability of a URL with VBScript
- From: neilsolent
- Checking the availability of a URL with VBScript
- Prev by Date: Checking the availability of a URL with VBScript
- Next by Date: Re: Checking the availability of a URL with VBScript
- Previous by thread: Checking the availability of a URL with VBScript
- Next by thread: Re: Checking the availability of a URL with VBScript
- Index(es):
Relevant Pages
|