Python for CGI w/Apache (httpdapi)
Brand Hunt
brand_hunt at my-deja.com
Wed May 3 22:20:25 EDT 2000
The dictionary returned doesn't contain the keys "DOCUMENT_URI" or
"REQUEST_URI". I don't know how to get httpdapi to import these
environment variables along with the others. Any ideas?
Thanks,
Brand
In article <ku66svfiw7.fsf at lasipalatsi.fi>,
Erno Kuusela <erno at iki.fi> wrote:
>
> You can httpdapi.RequestHandler.build_cgi_env(), which returns a
> dictionary.
>
> if you want to turn these into real environment variables, you can
> just loop over the returned dict and stuff them into the os.environ
> dictionary.
>
> -- erno
>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list