On 5/14/06, Fred C <[EMAIL PROTECTED]> wrote:
> Where do I get the environment variables like REMOTE_ADDR,
> HTTP_X_FORWARDED_FOR, HTTP_USER_AGENT, etc, etc.

You've been doing CGI for too long. :-)

Those values aren't really in environment variables--that's just how
they're passed to a CGI application. They're actually contained in the
headers of the HTTP request.

In TurboGears, you can access the request headers as a dict in
cherrypy.request.headerMap.

-- 
Tim Lesher <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to