HttpModule write in Response.Filter

  • Thread starter Thread starter lu2vik
  • Start date Start date
L

lu2vik

Hi,

I would like to change the outputstream from response in the
EndRequest httpmodule event.

I tried whith the Response.Filter properties it works in the
BeginRequest but not in the EndRequest.

I don't understand why ...

I need to parse the html output to rewrite links on the fly (with
regex) . Objective is rewrite url to make a reverse proxy without
change all source code.
 
Hi,

I would like to change the outputstream from response in the
EndRequest httpmodule event.

I tried whith the Response.Filter properties it works in the
BeginRequest but not in the EndRequest.

I don't understand why ...

I need to parse the html output to rewrite links on the fly (with
regex) . Objective is rewrite url to make a reverse proxy without
change all source code.

Hi,

Here's sample that modifies output stream and also explanations when
filters are not called:
http://aspnetresources.com/articles/HttpFilters.aspx

Thanks,
Sergey
 
Back
Top