Re: [squid-users] Squid Cache: Version 3.1.15 - Adding custom header

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 13 Sep 2011 17:25:22 +1200

On 13/09/11 17:05, Kris Glynn wrote:
> Thank you.
>
> If for instance there was a header to replace and it was an RFC defined header - would this work?
>
> request_header_replace X-Sophos-WSA-ClientIP %SRC
>
> Is %SRC a valid parameter ?

If "X-Sophos-WSA-ClientIP" was a RFC defined request header name you
could use it in request_header_replace along with request_header_access
to determine when to strip and replace the existing one.
  The value validity is determined by the RFC about that header. There
are no macros or escaping expansion performed. With that config line
Squid will place into the header the characters %, S, R, then C.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.15
   Beta testers wanted for 3.2.0.11
Received on Tue Sep 13 2011 - 05:25:30 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 13 2011 - 12:00:02 MDT