modifing the request stream of HttpModule

Discussion in 'ASP .Net' started by =?Utf-8?B?VG9t?=, Oct 24, 2005.

  1. Hi,

    I try to modify the request stream of the HttpApplication object. I work
    with a request filter, thus I implemented the Stream class at the derived
    class.

    In the BeginRequest event handler of the implemented IHttpModule interface.
    I install the filter here. With the following statement:
    app.Request.Filter = new myFilter(app.Request.Filter);

    The overrided Read method of the httpmodule class is called one time. This
    is nice, but I must return more bytes then asked, before ASP.NET processes
    the request, the content stream? How can I do this. Is this possible?

    regards,
    Tom
    =?Utf-8?B?VG9t?=, Oct 24, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dennis M. Marks
    Replies:
    1
    Views:
    394
    Beauregard T. Shagnasty
    Sep 18, 2004
  2. Sujan Datta

    Modifing existing header file

    Sujan Datta, Oct 14, 2003, in forum: C Programming
    Replies:
    3
    Views:
    437
    Sujan Datta
    Oct 15, 2003
  3. Nitya Prakash

    Modifing resx file at run time in asp.net 1.1

    Nitya Prakash, Mar 8, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    343
    Nitya Prakash
    Mar 8, 2007
  4. zaley
    Replies:
    1
    Views:
    204
    Helmut Jarausch
    Feb 20, 2008
  5. uncleg

    Modifing TestRunner Help

    uncleg, Nov 11, 2005, in forum: Ruby
    Replies:
    1
    Views:
    114
    Ryan Leavengood
    Nov 13, 2005
Loading...

Share This Page