How to decode xml response?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
i need to send xml request with compress GZIP and i need to filter response (decode) from GZIP
<%
pXML=Server.URLencode(Service_Available_Request)<br/>
set http = server.CreateObject("MSXML2.ServerXMLHTTP")<br/>
http.open "post", "http://214.120.259.41/app/http/service", false<br/>
http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"<br/>
http.setRequestHeader "Accept-Encoding", "gzip, deflate"<br/>
http.send "request=" & pXML<br/>
<br/>
response.write "Response XML Status : "& http.status &"<br/"
<br/>
http_response = http.ResponseText <br/>
Set xd= Server.CreateObject("Microsoft.XMLDOM")<br/>
xd.async = "false"<br/>
xd.loadXML(http_response)
<br/>
response.write = "Response XML : "& http_response
%>
in the above asp code below is the response
Response XML Status :200
Response XML : ? (here is coming like question mark and a box)

My question is : How i decode XML response..
Plz help me,
Alex


View the full article
 
Back
Top