RE: [squid-users] Custom Log

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 30 Mar 2006 00:21:04 +0200

ons 2006-03-29 klockan 15:19 +0200 skrev Cole:
> Hi.
>
> So if i were to implement the LFT_REQUEST_SIZE_TOTAL for my own logs. What datastructure could I use
> to get the entire request size?

What you did, but to this you need to add the length of the request
line. This isn't available directly, but you can calculate it by adding
the length of the request method plus the length of the requested URL.

And to this you need to add the value of the Content-Length request
header, if any, to include the size of the (optional) request entity
(data being sent to the server)

Regards
Henrik

Received on Wed Mar 29 2006 - 15:21:10 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:04 MST