[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there also a way to count the bytes received?


Hans de Groot wrote:
Hi,

It's me again with more impossible questions.

I am logging the bytes sent to a database, I would also like to log the
bytes received is there any small chance this can be done?

You could probably do this with an input filter if I am understanding your question correctly. Capture the number of bytes which the filter processes and log it to the database.

http://perl.apache.org/docs/2.0/user/handlers/filters.html#Stream_oriented_Input_Filters

For more details on filters see Geoff's excellent presentations on filters - http://www.modperlcookbook.org/~geoff/

HTH

Fred


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.