asp下的proxy.asp

<%@ 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);
}
%>

Popularity: 8%

No Responses to “asp下的proxy.asp”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>