HttpWebRequest - how to measure traffic

ilya2

Freshman
Joined
Apr 13, 2004
Messages
29
Location
Slovakia
Hi,

I'm working on a chat application which uses HttpWebRequest/Response to communicate with a web service.

Now I would like to add a feature that informs user about the actual (and accurate ;) number of bytes that have been sent/received so far.

Do you have any idea about how to do this?
I haven't found any way to intercept the HttpWebRequest/Response streams which would include any headers received or sent.

Thanks a lot for your suggestions!
 
Back
Top