RE: [squid-users] URL redirecting

From: stuart <stuart@dont-contact.us>
Date: Thu, 28 Mar 2002 02:14:26 +1100

Hello,
Nothing.....
But if I type # myper.pl
And then type # http://nlisdev.catjes.com.au/
I get back http://172.16.0.112:8008/

I have noticed that now it the access.log, someone managed to request
NONE://172.16.0.112:8008

Should I try escaping the slashes?
Stu

-----Original Message-----
From: Simon White [mailto:simon@mtds.com]
Sent: Thursday, 28 March 2002 2:01 AM
To: squid-users@squid-cache.org
Subject: Re: [squid-users] URL redirecting

27-Mar-02 at 20:54, stuart (stuart@catjes.com.au) wrote :
> #!/usr/bin/perl
> $|=1;
> while (<>) {
> s@http://nlisdev.catjes.com.au/@http://172.16.0.112:8008/@;
> print;
> }

Looks like your PERL script. I think you will have to escape some of
those slashes, no?

What happens if you do

$ echo "http://nlisdec.catjes.com.au/" | my.perl.pl

--
[Simon White. vim/mutt. simon@mtds.com. GIMPS:57.04% see
www.mersenne.org] Programming today is a race between software engineers
striving to build bigger and better idiot-proof programs, and the
Universe trying to produce bigger and better idiots.  So far, the
Universe is winning.  -- Rich Cook [Arbitrary quotes signature rotation,
a simple bash script by Simon White]
Received on Wed Mar 27 2002 - 08:14:10 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:07 MST