Re: Apache2::Connection::remote_ip

2014-11-21 Thread Randolf Richardson
> On 20/11/2014 22:39, John Dunlap wrote: > > Could you give us a link to the documentation you are using? > > > > On Thu, Nov 20, 2014 at 5:38 PM, worik > > wrote: > > > > Can't locate object method "remote_ip" via package > > "Apache2::Connection > > > You

Re: Apache2::Connection::remote_ip

2014-11-20 Thread Dr James Smith
On 20/11/2014 22:39, John Dunlap wrote: Could you give us a link to the documentation you are using? On Thu, Nov 20, 2014 at 5:38 PM, worik > wrote: Can't locate object method "remote_ip" via package "Apache2::Connection You are probably looking at 2.2

Re: Apache2::Connection::remote_ip

2014-11-20 Thread John Dunlap
Could you give us a link to the documentation you are using? On Thu, Nov 20, 2014 at 5:38 PM, worik wrote: > Can't locate object method "remote_ip" via package "Apache2::Connection > > Turns out I should have used $r->useragent_ip > > What is going on? Why is the documentation at odds with the

Apache2::Connection::remote_ip

2014-11-20 Thread worik
Can't locate object method "remote_ip" via package "Apache2::Connection Turns out I should have used $r->useragent_ip What is going on? Why is the documentation at odds with the code? W -- Why is the legal status of chardonnay different to that of cannabis? worik.stan...@gmail.com 021-

Re: Problem with Apache2::Connection::remote_ip

2014-02-10 Thread Steve Baldwin
FYI, following the Apache 2.4 API I found $r->useragent_ip gave me what I wanted. Steve On Mon, Feb 10, 2014 at 7:54 AM, Steve Baldwin wrote: > Thanks for that. Yes, it would appear that the versions of apache2 and > mod_perl 'bundled' with Ubuntu 13.10 are not exactly in sync and the > versio

Re: Problem with Apache2::Connection::remote_ip

2014-02-09 Thread Steve Baldwin
Thanks for that. Yes, it would appear that the versions of apache2 and mod_perl 'bundled' with Ubuntu 13.10 are not exactly in sync and the version of mod_perl (which is the latest on CPAN afaict) has not yet caught up with apache 2.4. I guess the Apache2::xxx modules are 'wafer thin' layers over

Re: Problem with Apache2::Connection::remote_ip

2014-02-09 Thread Jeff Trawick
On Sun, Feb 9, 2014 at 9:40 AM, Steve Hay wrote: > On 9 February 2014 05:49, Steve Baldwin wrote: > > Hi, > > > > Not sure what I'm doing wrong here. I'm just trying to get the client ip > > address in a PerlResponseHandler as follows: > > > > : > > use Apache2::Connection; > > : > > my $remo

Re: Problem with Apache2::Connection::remote_ip

2014-02-09 Thread Steve Hay
On 9 February 2014 05:49, Steve Baldwin wrote: > Hi, > > Not sure what I'm doing wrong here. I'm just trying to get the client ip > address in a PerlResponseHandler as follows: > > : > use Apache2::Connection; > : > my $remote_ip = $r->connection->remote_ip(); > : > > I get a runtime error as

Re: Problem with Apache2::Connection::remote_ip

2014-02-09 Thread André Warnier
Steve Baldwin wrote: Hi, Not sure what I'm doing wrong here. I'm just trying to get the client ip address in a PerlResponseHandler as follows: : use Apache2::Connection; : my $remote_ip = $r->connection->remote_ip(); : I get a runtime error as follows: [Sun Feb 09 16:44:22.499681 2014] [p

Problem with Apache2::Connection::remote_ip

2014-02-08 Thread Steve Baldwin
Hi, Not sure what I'm doing wrong here. I'm just trying to get the client ip address in a PerlResponseHandler as follows: : use Apache2::Connection; : my $remote_ip = $r->connection->remote_ip(); : I get a runtime error as follows: [Sun Feb 09 16:44:22.499681 2014] [perl:error] [pid 3632] [