0

I want to be able to track the amount of data that is being transfered from my web site to each user that accesses the site. I can do this for file downloads and such but what about the pure html content itself.

How can I track the output size of a page (or the data that's trasnfered via an AJAX call) to the client and log it against a particular users session?

Also how would this differ when GZip is used in IIS 6.0?

Middletone
  • 4,190
  • 12
  • 53
  • 74

2 Answers2

0

You could develop a HttpModule to do this as in this question. If you used a HttpModule to do this I would imagine compression is applied after this in IIS 6.0.

Community
  • 1
  • 1
Joel Cunningham
  • 13,620
  • 8
  • 43
  • 49
0

One more way without writing any special code

You just get this parameter

Response.Filter.Length

Ref: Bandwidth Monitoring in asp.net

Community
  • 1
  • 1
Aristos
  • 66,005
  • 16
  • 114
  • 150