我需要在下面的xml请求中实现Compression Gzip
<%
pXML=Server.URLencode(XML_Request)
set http = server.CreateObject("MSXML2.ServerXMLHTTP")
http.open "post", "http://213.171.234.70/appservices/http/FrontendService", false
http.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
http.send "xml_request=" &pXML
http_response= http.responsexml.xml
Set xd= Server.CreateObject("Microsoft.XMLDOM")
xd.async = "false"
xd.loadXML(http_response)
%>
请帮忙解决这个问题.....
TKS
答案 0 :(得分:0)
我相信你不能,HTTP协议不允许它。请在此处查看更详细的说明。 Why can't browser send gzip request?
答案 1 :(得分:0)
您可以尝试添加accept标头,这样服务器就会发送gzip编码的内容。
在http.send
:
http.setRequestHeader "Accept-Encoding", "compress, gzip"