tis 2006-03-07 klockan 22:21 -0800 skrev Tom:
> Hi,
>
> I'd like to add page title to the access.log to make
> it easier to know the users' surfing history in the
> generated reports.
>
> There is no such config option so I tried to modify
> the source code.
>
> I found that it's this line of code
> accessLogLog(&http->al);
> in the client_side.c that writes message to log file.
> But I can't get the HTTP reply's HTML body text (that
> can be used to get <TITLE> text) before calling
> accessLogLog(&http->al).
>
> I know I can get the HTML body text in the
> httpReadReply function of http.c file. But I don't
> know how to pass the body text to the right place.
The client side routines would be more appropriate place to tackle this.
clientSendMoreData() in Squid-2.5.
When the title is known save it into http->al.title (after first
creating such field in AccessLogEntry)
Regards
Henrik
This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:06 MST