IHttpModule

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Can I write an implementation of the IHttpModule and set it up on IIS 6.0
such that it gets invoked for all requests (including the requests going to
non .NET appliations)

thanks
hari
 
Hi Hari,

Welcome to the MSDN newsgroup.

As for ASP.NET HttpModule, it can only process http requests which will be
passed to the ASP.NET runtime pipeline. In other words, if we want to make
a certain kind of request be forwarded to the ASP.NET runtime, we need to
explicitly associate its extension to the ASP.NET ISAPI extension. In
addition, since ASP.NET can only intercept those requests which aim at a
given document extension(like .asp, .aspx, .php.....), if the request is
aiming at a dir path, for example:

http://servername/appname/vdirname/

the ASP.NET extension can not intercept such request either. Therefore, in
order to intercept all the coming http requests in IIS, we still suggest
use raw ISAPI filter.

#Creating ISAPI Filters
http://msdn.microsoft.com/library/en-us/iissdk/html/77b95fc9-e7de-471a-8de9-
fee27c816cc3.asp?frame=true

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top