First, add the HttpHandler definition in Web. Config:
Copy codeThe Code is as follows:
<HttpHandlers>
<Add verb = "*" path = "*" type = "Encourage. wtSSOCheck"/>
</HttpHandlers>
Then define the HttpHandler logic:
Copy codeThe Code is as follows:
Public class wtSSOCheck: IHttpHandler
{
Public void ProcessRequest (HttpContext context)
{
String a = context. Request. QueryString ["reqstr"];
Context. Response. Write ();
}
Public bool IsReusable
{
Get
{
Return false;
}
}
}
In this example, Get parameters through Get requests to implement an Http redirection.
Finally, you need to set IIS on the server where the deployment is located: click "website"> "properties"> "home directory"> "configuration". In "wildcard application ing (execution order) "Add executable file" C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ aspnet_isapi.dll ", and deselect" check whether the file exists.
So that we can pass through the http://www.jb51.net/wtSSOCheck? Reqstr = tteesstt to access the Web.