Response length

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
 
P

Patrice

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
 
H

Henrik Hofmann

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
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top