/*
- * $Id: access_log.cc,v 1.122 2007/04/28 22:26:37 hno Exp $
+ * $Id: access_log.cc,v 1.123 2007/05/17 19:55:52 hno Exp $
*
* DEBUG: section 46 Access Log
* AUTHOR: Duane Wessels
LFT_REQUEST_METHOD,
LFT_REQUEST_URI,
+ LFT_REQUEST_URLPATH,
/*LFT_REQUEST_QUERY, * // * this is not needed. see strip_query_terms */
LFT_REQUEST_VERSION,
{"rm", LFT_REQUEST_METHOD},
{"ru", LFT_REQUEST_URI}, /* doesn't include the query-string */
+ {"rp", LFT_REQUEST_URLPATH}, /* doesn't include the host */
/* { "rq", LFT_REQUEST_QUERY }, * / / * the query-string, INCLUDING the leading ? */
{">v", LFT_REQUEST_VERSION},
{"rv", LFT_REQUEST_VERSION},
break;
+ case LFT_REQUEST_URLPATH:
+ if (al->request) {
+ out = al->request->urlpath.buf();
+ quote = 1;
+ }
+ break;
+
case LFT_REQUEST_VERSION:
snprintf(tmp, sizeof(tmp), "%d.%d", (int) al->http.version.major, (int) al->http.version.minor);
#
-# $Id: cf.data.pre,v 1.434 2007/05/13 21:27:50 hno Exp $
+# $Id: cf.data.pre,v 1.435 2007/05/17 19:55:52 hno Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
mt MIME content type
rm Request method (GET/POST etc)
ru Request URL
+ rp Request URL-Path excluding hostname
rv Request protocol version
et Tag returned by external acl
ea Log string returned by external acl