Re: [squid-users] Problems with Cacheobject

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 06 Aug 2007 15:34:27 +0200

On ons, 2007-08-01 at 10:17 +0200, Enrico Popp wrote:

> >A two-line perl program would do just fine.
> >
> >#!/usr/bin/perl -p
> >BEGIN {$|=1;}
> >s%^http://www.bli.org%http://www.bla.org% && next
> >
> >Regards
> >Henrik
> >
> >
> And now can i include this into squid with
> url_rewrite_program /path to script ?

Yes.

> And i it is possible, where this script gets the input?

The script gets it's input on standard input / stdin, from Squid.

Regards
Henrik

Received on Mon Aug 06 2007 - 07:34:38 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT