Sunday, October 24, 2004

Intercept Http requests with HttpModules (ISAPI Filters .NET style)

There are many reasons to inspect incoming requests before they hit actual page's code. It might be helpful for authentication, authorization, logging, content inspection, encryption, signing, input validation and so on. The list does not represent something that might directly relate to business logic, all of those are common actions applicable to any application and as such must not be incorporated into business logic code. Those must be executed in such a way so that application "won't feel" it – the orthogonal way. To implement such functionality we use HttpModules – "ISAPI filters" .NET style with a little difference – it is easier to implement by far. Watch the video (also avail in Hebrew) in full screen mode.

0 Comments:

Post a Comment

<< Home