Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Detail is:

I want to replace the 'Text 1' in the Input stream to 'Text 2'

The first: I use the Request.Filter as http://msdn.microsoft.com/en-us/library/system.web.httprequest.filter.aspx But this way I can only replace a byte data by an other byte, I can not replace a string by a string and I also can not change buffer size. I need to access and replace the old buffer by an other byte array (content and buffer.length)

The second: I try to use a ISAPI Filter, but It seem that the IIS 7 and above is no longer support for SF_NOTIFY_READ_RAW_DATA. I google and result is I should write a native HttpModule with CHttpModule::OnReadEntity event. Is it right ?

I would be very appreciate if you can tell me how I can change the input request stream.

Thank you very much.

Huy
Posted
Updated 3-Nov-11 19:34pm
v2

1 solution

Have a look at similar Question-Answer discussion below.

http://forums.asp.net/t/1388075.aspx/1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900