Re: [squid-users] adding a parameter to a URL / Problem in the url_redirect program

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Mon, 07 Jul 2008 14:07:08 +0200

On mån, 2008-07-07 at 10:03 +0000, Shain Lee wrote:
> Thank you Henrik. yes that script is very simple and now and its
> working. But i have another requirement to capture Client IP which
> comes via the URL . Its bit confuse at this time coz i had different
> idea .So now can direct me to how to capture client ip by that perl
> script which you have posted.

change the split line to

my ($url, $ip) = split(/ /);

Then use $ip as you like in the script..

Regards
Henrik

Received on Mon Jul 07 2008 - 12:07:12 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 07 2008 - 12:00:04 MDT