On Thu, Apr 20, 2006 at 04:08:24PM +0200, frevol nicolas wrote:
> i am triing to replace squidguard by a python script.
> to do this, i have dreated an .exe file and i wrote in
> the squid.conf file :
> "redirect_program /home/mysession/rep/executable".
> the problem is that i don't know how to take back the
> request from squid to give the URL to my script.
How a redirector works:
http://squid.visolve.com/squid/squid24s1/glossary.htm#external_programs
How to read from STDIN in Python:
http://docs.python.org
(Hint: the file object for STDIN is sys.stdin)
You will need to write an endless loop that reads from STDIN and outputs to
STDOUT.
Kind regards
Christoph Haas
-- ~ ~ ".signature" [Modified] 1 line --100%-- 1,48 AllReceived on Thu Apr 20 2006 - 08:50:50 MDT
This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:02 MDT