<% '----------- Send.asp ----------------------- set Xmlhttp = Server.createObject ("Microsoft. XMLHTTP ") XMLHTTP.Open" Post "," http://localhost/sm/get.asp ", false xmlhttp.setRequestHeader" Content-Type "," text / xml "xmlhttp.send" XML Version = '1.0 '?> How to solve the XMLHTTP submission back is garbled, this is to submit it, return the text.
Response.write xmlhttp.responsexml.xml%> <% @ language = vbscript%> <% '------------------ Get.asp -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------- response.contenttype = "text / xml" response.charset = "GB2312"
DIM VARCOUNT, VARREQ, XmLDomvarcount = Request.totalBytesvarreq = Request.binaryRead (VARCOUNT)
If Request.ServerVariables ( "REQUEST_METHOD") = "POST" Then Set xmldom = Server.CreateObject ( "MSXML2.DOMDocument") xmldom.load varReq Response.Write " Xml version =" "1.0" "encoding =" "GB2312 ""?> "& xmldom.documentelement.xmlelse response.write" XML Version = "" 1.0 "" Encoding = "" GB2312 "" "> <> how to solve the XMLHTTP submission back to garbled, this is from The server directly returned directly. <"END IF%>