Re: [Rabbit-proxy-development] Getting Contentlength
Brought to you by:
ernimril
From: Robert O. <ro...@kh...> - 2007-01-07 19:38:00
|
Ingo Schr=F6der wrote: > i would like to know, how to get the content-length of incoming and=20 > outgoing traffic. The Fields in Connection are only filled, when an=20 > internal message should be sent to the client. You can check to see if that header is set or not. In many cases you will not know in advance: *) http/1.1 with chunking *) http/0.9 *) http/1.0 or http/1.1 with "Connection: close" set. If you check the header then be sure that you count the correct amount, when rabbit filters a resource it may change the content length. > But how can i get the amount of data transfered by each connection? All data that is transferred is counted so you can implement a TrafficLogger and count the data as it happen. Rabbit usually just keeps simple statistics, check the status page to see the normal statistics. /robo |