PETER BARKER
newbarker at btinternet.com
Thu Mar 29 08:32:34 EST 2007
Olaf Stein <steino at ccri.net> wrote: Date: Thu, 29 Mar 2007 09:29:18 -0400 Subject: Re: [mod_python] Remote IP From: Olaf Stein <steino at ccri.net> To: PETER BARKER <newbarker at btinternet.com> Works great thanks On 3/29/07 9:23 AM, "PETER BARKER" <newbarker at btinternet.com> wrote: I came up with this: from mod_python import apache def handler(req): req.content_type = 'text/plain' req.add_common_vars() req.write('IP address of requester is ' + req.subprocess_env['REMOTE_ADDR']); return apache.OK After reading the page http://www.modpython.org/live/current/doc-html/pyapi-mprequest-mem.html Hope this helps, Pete Olaf Stein <steino at ccri.net> wrote: Hi All, Is there any built in function in mod_python to obtain the remote IP address. Or any other way? Thanks Olaf _______________________________________________ Mod_python mailing list Mod_python at modpython.org http://mailman.modpython.org/mailman/listinfo/mod_python ------------------------- Olaf Stein DBA Center for Quantitative and Computational Biology Columbus Children's Research Institute 700 Children's Drive phone: 1-614-355-5685 cell: 1-614-843-0432 email: steino at ccri.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070329/34c18bcb/attachment.html
|