Re: Checking the availability of a URL with VBScript

Tech-Archive recommends: Fix windows errors by optimizing your registry



"neilsolent" <neil@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1154860357.919690.77370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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

I can't reproduce, can you show your script?
You might try scheduling the script to run every few minutes instead of just
looping.

--

Joe Fawcett - MVP

http://joe.fawcett.name


.



Relevant Pages

  • Re: How to Write an Infinite Loop that doesnt Die when Program Dies
    ... is a simpler way to start an infinite loop. ... Unfortunately, every time my web server dies, this script dies. ...
    (comp.unix.shell)
  • Re: Web Help
    ... And save it as "certificate.php" on your web server. ... do to get around the limitations with IWP reports is to build your own. ... and the "Go to URL" script step. ... Printing from the web is not the best as you can not compress ...
    (comp.databases.filemaker)
  • Script using dll and ocx (to integrate in IIS )
    ... I have a script for an Motion Jpeg that I have to integrate into a website ... to get a "live Image" from a network camera. ... But in this script I have to install a dll and an oxc on my ... Create a Web Server alias and use this as the image ...
    (microsoft.public.inetserver.iis.ftp)
  • Sript using a dll an a ocx (to intigrate in IIS)
    ... I have a script for an Motion Jpeg that I have to integrate into a website ... to get a "live Image" from a network camera. ... But in this script I have to install a dll and an oxc on my ... Create a Web Server alias and use this as the image ...
    (microsoft.public.inetserver.iis)
  • Re: shorten time to attempt to connect to back end
    ... Is it not the case that the web server could be written in any ... The script on that web server could be ASP, ... I'm not sure why the dependency on IE is needed. ... FTP script to upload data, and then called a CGI script on that web ...
    (comp.databases.ms-access)