Greetings,

I'm currently using the following code on some sections of my site:

Code:
<%
Dim SID, Host, URL, PageURL, objXMLHttp, IPAddress, UserAgent
SID="----Removed-from-Post-----------"
IPAddress=Request.ServerVariables("REMOTE_HOST")
UserAgent=Request.ServerVariables("HTTP_USER_AGENT")
Host=Request.ServerVariables("HTTP_HOST")
PageURL=Request.ServerVariables("URL")
PageURL=PageURL & "?" & Request.ServerVariables("QUERY_STRING")
PageURL=Server.UrlEncode(PageURL)
URL="http://si.goldencan.com/GetData.aspx?ver=2.0&SID=" & SID & "&PageURL=" & PageURL
URL=URL & "&Host=" & Server.UrlEncode(Host)
URL=URL & "&IPAddress=" & Server.UrlEncode(IPAddress)
URL=URL & "&UserAgent=" & Server.UrlEncode(UserAgent)
SET objXMLHttp = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHttp.Open "GET", URL, False
objXMLHttp.Send()
Response.Write(objXMLHttp.responseText)
%>

And I noticed when there is server response issues, the page will hang for a while and then say the following error:

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

Is there a way to add in some sort of a timeout option if there is server problems not to hang the entire page?

Would this work ?

Code:
  objXMLHTTP.setTimeouts 5000, 60000, 10000, 10000

Thanks