Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML http

Status
Not open for further replies.

craigey

Technical User
Apr 18, 2002
510
GB
I don't know if this is the right forum, but here goes.

I'm trying to use the XMLhttp object tpo return the status of a webpage. Part of the code I'm using is below:

Set objhttp = Server.CreateObject ("Microsoft.XMLhttp")
objhttp.open "GET", strURL, False
objhttp.send
sHTML=objhttp.statusText
If err or sHTML<>&quot;OK&quot; Then
sTxt=&quot;FAILED&quot;
Else
sTxt=&quot;ok&quot;
End if
Set objhttp=nothing %>

It works perfectly at home on my dial-up modem. Only thing is I can't get this to work on my Work IIS server as all the reults come back saying Failed. I think this is due to a port restriction on our proxy server. Does anyone know which port xmlhttp works on? or another way to get around this?

Thanks
 
ha -ha. Well I figured this one out myself. For anyone that's interested...........................

You hace to add the route to the IP address that you want to connect to.

1 star for me I think!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top