I am trying to get a rss feed with following code: Set xmlHTTP = Server.CreateObject("Microsoft.XMLHTTP") xmlHTTP.Open "GET",strXMLfile,false xmlHTTP.SetRequestHeader "Content-type", "text/xml" xmlHTTP.Send strXML = xmlHTTP.ResponseText As long as the server that provides the rss feed is running, then my script is fine but if rss feed server has a problem and doesn't respond, then I will get an error message msxml3.dll error '800c0008' when script executes xmlHttp.Send , how can I check the statue of rss feed server, so if it is not ready then I won't execute the xmlHTTP.Send? Thanks.
If xmlHTTP.status = 200 Then strXML = xmlHTTP.ResponseText This checks to see if the GET returned a 200, which means the request has succeeded. To see a full list of potential response codes, check: http://kbs.cs.tu-berlin.de/~jutta/ht/responses.html