Request Headers In a CGI

Michael Foord fuzzyman at gmail.com
Fri Sep 10 05:02:23 EDT 2004


Is it possible to get at the http request headers in a normal CGI ?

I can't touch the server, so I can't install anything like mod_python.
I've tried googling but the answer seems to be 'no'.

I know I can reconstruct *most* headers from the environment variables
- is this my only option ? I've heard of 'non-parsed headers', but I
don't know how to use them from within a python cgi....

Anyone got any clues, or answers ?

Regards,


Fuzzy

http://www.voidsapce.org.uk/atlantibots/pythonutils.html



More information about the Python-list mailing list