Response length

  • Thread starter Thread starter Henrik Hofmann
  • Start date Start date
H

Henrik Hofmann

Hi,
after a Request is finished I'd like to log the the byte quantity sent to
the user to get a per user traffic analsis.

The correct place to do this seems to me to be Applicaltion_EndRequest but
how can I determine the length of the response.

If I had an opportunit to just get the Content-length this would be fine too
at first.


Regards,

Henrik
 
This is also something you already have in the IIS log...

If you still want to get this info from your app, try
Response.OutputStream.Length (or Response.Filter in the worst case).

Patrice
 
If you still want to get this info from your app, try
Response.OutputStream.Length (or Response.Filter in the worst case).

Patrice

I've tried to do this but every time I try to access length a
NotSupportedException is thrown.


Henrik
 
Back
Top