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.
Code: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






Bookmarks