HttpModule write in Response.Filter

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.
 
S

Sergey Zyuzin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top