Re: [squid-users] squid redirector script

From: Kiraly Zoltan <[email protected]>
Date: Tue, 15 Jun 2004 14:04:09 +0300

yes work, but i need this page : www.google.com/ncr without / at end.

and when i put only www.google.com/ncr the script add / at end of address. I
don't need / at end of address.

----- Original Message -----
From: "Sunil S" <sunils@hpcl.co.in>
To: <squid-users@squid-cache.org>; <lux@wplink.net>
Sent: Tuesday, June 15, 2004 1:53 PM
Subject: Re: [squid-users] squid redirector script

> Doesn't this
> s@http://www.google.com@http://www.google.com/ncr/@;
> work ??
>
> Sunil
> >>> "Kiraly Zoltan" <lux@wplink.net> 06/15/04 03:39PM >>>
> I use this redirector script for squid proxy. I need to redirect
> www.google.com to www.google.com/ncr
>
> The only problem is because this script redirect www.google.com to ->
> www.google.com/ncr/ not www.google.com/ncr , i without / at end.
>
> So.. www.google.com/ncr is an existing page and www.google.com/ncr/
> not
> exist.
>
> #!/usr/local/bin/perl
> $|=1;
> while (<>) {
> s@http://www.google.com@http://www.google.com/ncr@;
> print;
> }
>
> Any good perl programmer help me ?
>
> I don't want squirm because not work on my OpenBSD box, im interesed in
> a
> simple script.
>
> Thanks !
>
>
>
>
>
Received on Tue Jun 15 2004 - 05:04:18 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:02 MDT