Are we able to do some transformation during the chaining of HttpModules? Say: when the web application recieves a http request, the first module changes the stuff between tags to Upper case and then pass the modified request to the next module. I tried to
modify the HttpApplication.HttpContext.Request (I suppose the HttpApplication is passed through all modules, not sure), but the properties are read-only. Is there a way to handle this? Thanks a lot.
If you have a look at the Response.Filter property, this lets you do just what you suggest and modules using it do get chained together. So, for instance, you could have an encryption filter that obfuscates the HTML and then the output from this could be processed
by another module which could compress it. The filter is a stream object that overrides the Write method to do whatever you want to the output, changing it as required.
Darren_Z
Member
5 Points
1 Post
Question on Chaining of HttpModules
Nov 22, 2003 01:21 PM|LINK
intesoft
Member
561 Points
114 Posts
Re: Question on Chaining of HttpModules
Nov 23, 2003 04:43 PM|LINK
ASPAccelerator.NET - Fewer bytes, faster pages
ASPRedirector.NET - Put friendly URLs on your site