First, add the httphandler definition in Web. config:
CopyCode The Code is as follows: <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", and click "wildcard application ".ProgramAdd the executable file "C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_isapi.dll" to the ing (execution sequence) "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.