Checking the availability of a URL
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I am using CreateObject("MSXML2.XMLHTTP.3.0") in A VBScript, which 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