gworld
Apr 22nd 2005, 2:05 am
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.
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.