INFO: ???? ???? ??????? HTTP ? ??????? ??????? HTTP ASP.NET

?????? ????????? ?????? ?????????
???? ???????: 307985 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ??? HTTP ASP.NET ??????? ??????? ???????? HTTP.

?????? ??? ????? ???? ASP.NET ?????? ? ?????? ??? ????? "????? ??????? ?? Microsoft" ???????:
305140INFO: ASP.NET ???????

??????? ????

??????? ??????? HTTP ???????? HTTP ????? ?? ????? ?? ????? ASP.NET. ????? ??? ???? ?????? ???, ??? ???????? ?????? ??????? ??????? HTTP ?????? (??? ???? ??????? ?????? ??????? ???????? ? ?????? ??????? ???? ?????) ?? ??? ??? ?? ??? ???????? ?????? ????? HTTP ????. ??? ????? ??????? ????? ? ????? ????? ??? ???? ???? HTTP ??????? ???????.

??? ????? ??? ??????? ??? ??????? ???????:

HTTP Modules

???? ??????? ??????? ??? ???? ????? ????? "". ????? ??????? ??????? ???????? ????? ?? ???????? ?? ?? ????? ?? ??? ????. ??????? ??????? ????? ????? IHttpModule ??????? ?? ????? ????? System.Web.

Available Events

???? ????? HttpApplication ??? ??????? ???? ???? ?????? ??????? ???????. ????? ??????? ??????? ??????? ??????? ?????? ?? ?? ???. ??? ??? ??? ??????? ???????? ????????:
  • BeginRequest: ??? ???. ??? ??? ????? ??? ?? ?????? ??? ?? ?? ????? ????? (??? ???? ??????? ??? ????? ?????? ?? ???? ?? ????) ?????? ??? ?????.
  • AuthenticateRequest: ??? ??? ???? ????? ???? ???????? ??????? (??? ???? ??????? ????? ?? ?????? ????? ????? ?????? ?????? ?? ??? ???? ????), ????? ???? ????? ??????? ??? ????? ????? ??? ???????? ??????? ???? ??????.
  • AuthorizeRequest: ??? ??????? ??? ????? ??????? ?????? ????? ??????? (??? ???? ??????? ?????? ????? ?? ????? ?????? ??????? (ACLs) ?? ????? ?????? ????? ?? ???? ???????). ??? ????? ?? ??? ???? ????? ??? ????? ?? ???? ???? ??? ????? ???? ?????? ????.
  • ResolveRequestCache: ???? ??? ????? ??? ?? ????? ???? ?? ??????? ????? ??????? ??????. ??? ??? ???? ????? ?????? ??????? ??????? ?????? ?????? ?? (??? ???? ??????? ????? ??????? ?????? ???? ???????? ??? ??? ????? ?? ????? ??????? ????) ?????? ??? ????? ?????? ?? ??? ??? ???? ?? ?? ???? ?????? ?? ????? ??????? ??????.
  • AcquireRequestState: ??????? ???? ???? ????? ?? ???? ????. ??? ??? ???? ?? ????? ?????? ?? ?????? ??????? ?????? ???? ?????? ??? ????? ?????? ??? ???? ???? ????? ?? ???? ??????.
  • PreRequestHandlerExecute: ????? ??? ????? ??? ????? ????? HTTP.
  • PostRequestHandlerExecute: ????? ??? ????? ??? ????? ????? HTTP.
  • ReleaseRequestState: ????? ???? ???? ????? ??? ???? ?? ???? ??????. ??? ??? ??? ???? ?????? ???? ????? ???? ???? ??? ???? ??? ????? ??????? ?? ???? ?????? ??? ????.
  • UpdateRequestCache: ??? ????? ???? ??????? ??? ???? ??? ????? ??????? ?????? ?????. ??? ??? ??? ???? ?????? ???? ????? ????? ??????? ???? ????? ????? ??????? ??? ???? ??? ????? ??????? ?????? ?????? ??.
  • EndRequest: ?? ????? ?????. ?? ????? ??? ????? ????? ????? ?????? ????????? ??? ????? ?? ????? ????????? ??? ??????.
????? ??????? ??????? ??????? ??????? ???????? ?? ?????? ?? ???. ????? ??? ??????? ??? ??????.
  • PreSendRequestHeaders: ????? ??? ????? ??? ????? ??????. ??? ???? ????? ???? ?????? ????? ?????? ??? ????? ?? ???? ????? ?????.
  • PreSendRequestContent: ??? ????? ??? ??????? ??????? Response.Flush. ??? ??? ???? ?? ????? ????? ?????? ????? ?????? ??? ????? ?? ???? ????? ?????.
  • ???: ????? ??? ????? ??? ???? ??????? ??? ?????. ??? ??? ???? ????? ???? ????? ????? ??? ????? ?????? ??? ?????.

Configuring HTTP Modules

????? ?????? ??????? <httpmodules>??????? ?? ????? ??????? ??????? HTTP ???? ??? ???????. ???? ?? ??? ????? ?? ????????? ?? ?? ???? ?? ?? ????? ???????. ?????? ???? ?????? ?????? ?? ????? ?????? <httpmodules>:
<httpModules>
   <add type="[COM+ Class], [Assembly]" name="[ModuleName]" />
   <remove type="[COM+ Class], [Assembly]" name="[ModuleName]" />
   <clear />
</httpModules>
				

Creating HTTP Modules

?????? ???? ????? HTTP ????? ??? ????? ????? IHttpModule. ??? ????? IHttpModule ??????? ???????? ???????? ???????:
void Init(HttpApplication);
void Dispose();
				
?????? ??? ??????? ?????? ??? ????? ????? HTTP ??????? ???? ??? ???? ????????? ????????? ??????? ?? "????? ??????? ?? Microsoft:
308000HOW TO: ????? ?????? ??????? HTTP ASP.NET ???????? Visual Basic .NET
307996HOW TO: ????? ?????? ??????? HTTP ASP.NET ???????? Visual C# .NET

HTTP Handlers

??? ??????? ??????? ??????? ????? ???? ??????? ???????. ????? ??????? ???? ??? ASP.NET ??????? HTTP URL ??????? ?? ??????? ?? ?????? URL ???? ??? ???????. ???? ??????? ?????? ????? ???? ??? ?????? ???. ????? ???? ??????? ????? IHttpHandler ??????? ?? ????? ????? System.Web. ??????? ??? ?? ?? ????? ????? ?????? ?????? ????? ????? ????????? (ISAPI).

Configuring HTTP Handlers

????? ?????? ??????? <httphandlers>??????? ?? ????? URLs ??????? ?????? IHttpHandler ?? IHttpHandlerFactory. ???? ?? ??? ????? ?? ????????? ?? ?? ???? ?? ?? ????? ???????. ??????? ??????? ??? ??? ?????????.

?????? ????????? ????? ??????? <add>????? ?????? <httphandlers>. ??? ????? ??????? <add>???? ???????? ???????? ?????? ???? ?????. ?????? ???? ?????? ?????? ?? ????? ?????? <httphandler>:
<httpHandlers>
   <add verb="[verb list]" path="[path/wildcard]" type="[COM+ Class], [Assembly]" validate="[true/false]" />
   <remove verb="[verb list]" path="[path/wildcard]" />
   <clear />
</httpHandlers>
				

Creating HTTP Handlers

?????? ????? HTTP ??? ????? ????? IHttpHandler. ????? ????? IHttpHandler ????? ???? ????? ????? ?? ???????? ???????:
void ProcessRequest(HttpContext);
bool IsReusable {get;}
				
??????: ??? ???????? ???? ???? ????? ?? ????? HTTP ????? ????? ??? ???? ?????? ????? IRequiresSessionState. ?????? ??? ??????? ?????? ??? ????? ??????? HTTP ???? ??? ???? ????????? ????????? ??????? ?? "????? ??????? ?? Microsoft:
308001HOW TO: ????? ????? HTTP ASP.NET ???????? Visual C# .NET
?????? ??? ??????? ??????? ???? ??? ???? ????????? ????????? ??????? ?? "????? ??????? ?? Microsoft:
307997HOW TO: ????? ????? HTTP ASP.NET ???????? Visual Basic .NET

???????

???? ???????: 307985 - ????? ??? ??????: 05/???/1428 - ??????: 3.5
????? ???
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
????? ??????: 
kbmt kbarttyperoadmap kbhttphandlers kbhttpmodule kbhttpruntime kbinfo KB307985 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????307985

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com