RE: [squid-users] header_replace: Can items be merged?

From: Jenny Lee <bodycare_5_at_live.com>
Date: Wed, 3 Nov 2010 14:43:55 +0000

----------------------------------------
> Date: Thu, 4 Nov 2010 03:39:49 +1300
> From: squid3_at_treenet.co.nz
> To: squid-users_at_squid-cache.org
> 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

 
 
                                                
Received on Wed Nov 03 2010 - 14:44:02 MDT

This archive was generated by hypermail 2.2.0 : Wed Nov 03 2010 - 12:00:02 MDT