RE: [squid-users] Custom Log

From: Cole <cole@dont-contact.us>
Date: Mon, 3 Apr 2006 10:56:03 +0200

 Hi.

Ive updated the access_log.c file to look something like this :
        case LFT_REQUEST_SIZE_TOTAL:
            outint = strlen(al->headers.request) + strlen(al->private.method_str) + strlen(al->url);
            doint = 1;
            break;

Is that correct so far?

Also when you speak about the Content-Length request header, which specific structure holds this
value?

Regards
/Cole

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@henriknordstrom.net]
Sent: Thursday, March 30, 2006 12:21 AM
To: cole@opteqint.net
Cc: 'Squid Users'
Subject: RE: [squid-users] Custom Log

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 Mon Apr 03 2006 - 02:56:28 MDT

This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:02 MDT