Edwin Grubbs
egrubbs at rackspace.com
Mon Jan 12 15:36:42 EST 2004
On Sun, Jan 11, 2004 at 11:27:12PM -0500, Gregory (Grisha) Trubetskoy wrote: > > On Sun, 11 Jan 2004, Edwin Grubbs wrote: > > The objective is to access the environment variables that are unique to > > each request such as REMOTE_ADDR, HTTP_USER_AGENT, and our own cookies > > such as SESSION_COOKIE. > > > > Hmm... This may be a bug somehwere, I'll have to take a look at it. But, > all of this information is available directly without having to use > subprocess_env, as part of the request object or req.headers_in. > Subprocess_env is an inefficient way of doing it since it is artificially > constructed from the same sources to which mod_python allows you direct > access. > > Grisha The req.headers_in variable does not contain the REMOTE_ADDR or the SCRIPT_NAME variables which can not be passed in using PythonOption. -Edwin
|