在提供一个asp实现的proxy
<%@ LANGUAGE=JScript %>
<%
//Creation of the component
var objHTTP =Server.CreateObject("Coalesys.CSHttpClient.1");
//HTTP variables
var HTTPResponseBody = new String();
var HTTPResponseHeaders = new String();
var HTTPResponseStatus = new String();
//Target URL
objHTTP.RequestURL = String(Request.Querystring).substr(4);
//Possibly, use a proxy (LAN 2 WAN)
//objHTTP.ProxyAddress = "<proxy_adress>";
objHTTP.ProxyPort = <proxy_port>;
objHTTP.AppendHost = true;
//Execution of the request
objHTTP.Execute("GET");
//Status reception
HTTPResponseStatus = objHTTP.ResponseStatus;
//Headers reception
HTTPResponseHeaders = objHTTP.ResponseHeaders;
//Response body reception
HTTPResponseBody = objHTTP.ResponseBody(0);
//Forwarding of the response
Response.ContentType = "text/xml";
Response.write(HTTPResponseBody);
%>