asp下的proxy实现代码,有需要的朋友可以参考下。
<%@ Language=JScript EnableSessionState=False%>
<%
//we are using MSXML3.0 to travel via HTTP
var httpReq;
if(Request.QueryString.Count)
{
httpReq=Server.CreateObject(“Msxml2.ServerXMLHTTP”);
httpReq.setTimeouts(5000,5000,15000,15000);
httpReq.open(“GET”,”"+Request.QueryString, false);
httpReq.send();
Response.Status=httpReq.status;
Response.ContentType=httpReq.getResponseHeader(“Content-Type”);
Response.BinaryWrite(httpReq.responseBody);
}
%>