Anyone know of a way to connnect and test if a site is up that is using host headers? They are behind a load balancer and I can't do a backdoor since there is a header? I'm thinking there has to be a way?
Code I usually use for web farms for a site:
on error resume next
arraystrcomputer = array("server1","server2")
for each objcomputer in arraystrcomputer
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
strurl = "http://" & objcomputer & "/qa/status/index.html"
objHTTP.Open "GET", strURL, FALSE
objHTTP.Send
if objHTTP.statusText = "OK" then
wscript.echo now & " Url Status " & objHTTP.statusText & " For " & strUrl
else
wscript.echo now & " Error Connecting to " & strurl
end if
next