furtivevole
Technical User
Hi Using classic asp, I'm trying to retrieve a string including xml tags from an intranet web server:
Using objXMLHTTP.responseXML as in the example gives an error
Using objXMLHTTP.responseText of course produces plain text. Any ideas please?
Code:
<%
Function GetHTML(strURL)
Dim objXMLHTTP, strReturn
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
objXMLHTTP.Open "GET", strURL, false
objXMLHTTP.Send
Response.ContentType = "text/xml"
strReturn = objXMLHTTP.responseXML
Set objXMLHTTP = Nothing
GetHTML = strReturn
exit function
End Function
%>
Code:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
Using objXMLHTTP.responseText of course produces plain text. Any ideas please?