I’m using Microsoft.XMLHTTP to get some information from another server from an old ASP/VBScript site. But that other server is restarted fairly often, so I want to check that it’s up and running before trying to pull information from it (or avoid my page from giving an HTTP 500 by detecting the problem some other way).
How can I do this with ASP?
All you need to do is have the code continue on error, then post to the other server and read the status from the post. Something like this:
on error resume next
status = xmlhttp.status