I meant to hack rewrite to supply more header information at rewrite instead of just URL and method.
for squid3-3.3.8 it would look like
sz = snprintf(buf, MAX_REDIRECTOR_REQUEST_STRLEN*2, "%s %s/%s %s %s myip=%s myport=%d ua=%s cookie=%s\n",
r->orig_url,
r->client_addr.NtoA(claddr,MAX_IPSTRLEN),
fqdn,
r->client_ident[0] ? rfc1738_escape(r->client_ident) : dash_str,
r->method_s,
http->request->my_addr.NtoA(myaddr,MAX_IPSTRLEN),
http->request->my_addr.GetPort(),
http->request->header.getStr(HDR_USER_AGENT),
http->request->header.getStr(HDR_COOKIE));
On Tue, Jan 5, 2016 at 10:27 AM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:
On 5/01/2016 5:46 p.m., Nir Krakowski wrote:
> Hi Alex, I meant that the filter is of the HTTP of the client-request and
> not the client-response or server-response.
> From what I've seen there is no example that monitors headers if at all
> possible.
>
> what I'm looking for is something like url_rewrite/redirect but based on
> headers as input to my filter.
> headers such as User-Agent for example.
So an ICAP REQMOD pre-cache adaptor.
>
> Any of examples like those exist via ecap or redirect ? or does it require
> a hack into squid ?
Huh? why would it require a hack of Squid to provide documentation
examples for some non-Squid software?
Amos
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users