RE: redirection

From: Redfern Ian <RedfernI@dont-contact.us>
Date: Thu, 4 Sep 1997 09:59:00 +0100

Use
redirect_program /usr/local/squid/bin/redir.pl
and write a redir.pl that just does something like

#!/usr/bin/perl -w
$| = 1;
$force_url = "http://my.host.example.com/path/to/image.gif";
while(<>)
{
    ($url, $addr, $fqdn, $ident, $method) = m:(\S*) (\S*)/(\S*) (\S*)
(\S*):;
    print "$force_url $addr/$fqdn $ident $method\n";
}

But beware that MSIE might get confused as it really seems to believe
the file suffix for some objects.

Ian Redfern (redferni@logica.com).
Received on Thu Sep 04 1997 - 02:06:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:36:55 MST