Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Checking the availability of a URL

Checking the availability of a URL

Scheduled Pinned Locked Moved Visual Basic
sysadmintoolshelpquestionlearning
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    neilsolent
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups