RE: [squid-users] Custom Log

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 03 Apr 2006 15:07:33 +0200

mån 2006-04-03 klockan 10:56 +0200 skrev Cole:

> 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?

Looks reasonable.

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

See LFT_REQUEST_HEADER_ELEM. The Content-Length header have the internal
id HDR_CONTENT_LENGTH. Also it's a size field so it's easier to get by
using httpHeaderGetSize() function. Be warned that -1 is returned if
there is no content-legnth header.

Regards
Henrik

Received on Mon Apr 03 2006 - 07:07:42 MDT

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