Results 1 to 6 of 6
Thread: Help With Microsoft XMLHTTP
Jan 22, 2002, 23:02 #1
- Join Date
- Jul 2000
- 0 Post(s)
- 0 Thread(s)
Help With Microsoft XMLHTTP
I am using Microsofts XMLHTTP to attempt to grab pages off of a remote server. Some servers it works, some it doesn't, it just comes back with basic HTML structure. I am using a VB component, but that is not related to the problem. A snippit of my code is below.
When I have http://www.sitepoint.com/ as my strFilePath data, I get this such error.
Set objXML = New XMLHTTP objXML.Open "GET", strFilePath, False objXML.setRequestHeader "Content-type", "text/html" If objXML.readyState <> 4 Then objXML.waitForResponse 20 End If objXML.send strFileContents = objXML.responseText Set objXML = Nothing