[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: how do I get the request IP?



  This worked.

  Thanks,

  Steve


-----Original Message-----
From: Perrin Harkins [mailto:suppressed 
Sent: Monday, October 23, 2006 1:39 PM
To: Steve Duran
Cc: suppressed
Subject: Re: how do I get the request IP?


On Mon, 2006-10-23 at 12:05 -0600, Steve Duran wrote:

>   I would like to get the IP address of the request, so I've tried the
> following:
>  
>   my $c = $r->connection();
>   my $ipAddr = $c->remote_ip();
>   
>   I get the following error:
>  
>   Can't locate object method "remote_ip" via package 
> "Apache2::Connection"
>  
>   Can anyone tell me what I'm missing?

use Apache2::Connection;

That's probably all you need.

The docs for Apache2::Connection can be found in your distribution or on
CPAN here: http://search.cpan.org/dist/mod_perl/

- Perrin
**************************************************************************************************
CONFIDENTALITY NOTICE: This e-mail communication and any attachments may contain confidential and 
privileged information protected from disclosure by law. It is intended only for the use of the specified 
recipients.  Any unauthorized review, use, disclosure, distribution or any action based on this material is 
prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all 
copies of the original message.
**************************************************************************************************


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.