To get the IP address, in your code.py, you can put web.ctx.ip to get this.
Pass that on to the templates.
To get others, use the web.ctx.environ which is a dictionary. For example,
use web.ctx.environ['REMOTE_ADDR']  is another way to get the client IP.

On Thu, Jun 11, 2009 at 11:27 AM, Alex <[email protected]> wrote:

>
> How do I acess HTTP request headers in webpy? I'd like to extract IPs
> to fill the templates.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to