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
Attachment:
signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel