Search squid archive

Re: Re: %{Referer} or %{Referrer} header to external helper?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



One common mistake (I made it myself with my first rewriter, in fact) is to buffer the helper's STDOUT. Make sure you either disable buffering entirely (in perl, you can do this with a "$| = 1;" statement) or make sure you flush() STDOUT after printing OK/ERR.

-C

On May 12, 2009, at 9:23 AM, louis gonzales wrote:

Amos,
Thanks for the response - after some testing last night, not sure what
was hanging it up, but got it to work fine.

So "everything is good".

Thanks again.

On Tue, May 12, 2009 at 7:20 AM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:
louis gonzales wrote:

Dist,
In pre 3.0 Squid versions, I used the %{Referer} header to an external
helper, I 'seem' to be having an issue with this Request Header in
3.0... just wondering if anyone else has had an issue "OR" can confirm
that it works?

Thanks List,


I don't have time this week to setup the test myself and confirm sorry.
You can test it easily yourself using:

* a dummy external helper that prints its input to a log and returns "OK\n"

 * squidclient -H "Referer: fubar\n" http://google.com/

==> see what the helper log contains, what the cache.log contains.

Amos
--
Please be using
 Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
 Current Beta Squid 3.1.0.7




--
Louis Gonzales
BSCS EMU 2003
HP Certified Professional
louis.gonzales@xxxxxxxxxxxxxx



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux