----------------------------------------
> Date: Thu, 4 Nov 2010 03:39:49 +1300
> From: [email protected]
> To: [email protected]
> Subject: Re: [squid-users] header_replace: Can items be merged?
>
> On 04/11/10 03:32, Jenny Lee wrote:
> >
> > Hello folks,
> >
> > acl BADGUY dstdomain somewhere
> > header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit) BADGUY
> >
> > Is there any way to do this? It is sucking in the whole line as UA (as
> > expected). Quotation marks did not help.
> >
> > Any ideas?
>
> request_header_access User-Agent deny BADGUY
>
> The replace only happens if the header has been removed first.
Sorry I left it out assuming this is given. Yes it is removed.
request_header_access User-Agent deny all
It just does not work with BADGUY or anything else. It is correctly replaced
though... but with the entire line... UA becomes:
User-Agent Nutscrape/1.0 (CP/M; 8-bit) BADGUY
"User-Agent Nutscrape/1.0 (CP/M; 8-bit)" BADGUY
BADGUY User-Agent Nutscrape/1.0 (CP/M; 8-bit)
No difference.
3.2.0.1
J