I have written a monitor that runs every 5 minutes and all it looks for is the xml.status return code. If I get a 200 back, the web site is fine, if I get anything else back, I send an alert to the webmasters.
The problem I am having is with these objects.
Set xml=CreateObject("Msxml2.SERVERXMLHTTP.4.0")
Set xml=CreateObject ("MSXML2.XMLHTTP.3.0")
If I use the Set xml=CreateObject ("MSXML2.XMLHTTP.3.0") object, I have a problem with caching. If the site comes back with a 200 value, I will get a 200 value every time after that whether the site is working or not because it has cached locally on the server my monitor is running on.
If I use the Set xml=CreateObject("Msxml2.SERVERXMLHTTP.4.0") object, I no longer have the caching problem, but it does not seem to read all the sites correctly. If I look at one site, I can get back a 200 when it is up, if I look at a different site, it will come back with a 401 every time, whether it is up or not.
What I need is a solution to one of these 2 problems, either so the Set xml=CreateObject ("MSXML2.XMLHTTP.3.0") does not cache, or so the Set xml=CreateObject("Msxml2.SERVERXMLHTTP.4.0") will return correct and consistent results.
The problem I am having is with these objects.
Set xml=CreateObject("Msxml2.SERVERXMLHTTP.4.0")
Set xml=CreateObject ("MSXML2.XMLHTTP.3.0")
If I use the Set xml=CreateObject ("MSXML2.XMLHTTP.3.0") object, I have a problem with caching. If the site comes back with a 200 value, I will get a 200 value every time after that whether the site is working or not because it has cached locally on the server my monitor is running on.
If I use the Set xml=CreateObject("Msxml2.SERVERXMLHTTP.4.0") object, I no longer have the caching problem, but it does not seem to read all the sites correctly. If I look at one site, I can get back a 200 when it is up, if I look at a different site, it will come back with a 401 every time, whether it is up or not.
What I need is a solution to one of these 2 problems, either so the Set xml=CreateObject ("MSXML2.XMLHTTP.3.0") does not cache, or so the Set xml=CreateObject("Msxml2.SERVERXMLHTTP.4.0") will return correct and consistent results.