Link to home
Start Free TrialLog in
Avatar of Saroj13
Saroj13

asked on

close MSXML2.ServerXMLHTTP.3.0 object asp

Hi , I am using ajax in classic asp. I would like to close the object of type MSXML2.ServerXMLHTTP.3.0 .


Set objXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
objXmlHttp.open "GET", strUrl, false, "user", "123"
objXmlHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
objXmlHttp.send()

if objXmlHttp.status = 200 Then
      Set responseXML = CreateObject("Msxml2.DOMDocument.3.0")
       Response.ContentType = "text/xml"
       Response.CharSet = "UTF-8"
         responseXML.async = False
       responseXML.load objXmlHttp.responseStream
       responseXML.save Response
      else
      Response.write objXmlHttp.status
      
end if
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial