Request Headers In a CGI

John J. Lee jjl at
Mon Sep 13 21:48:54 CEST 2004

fuzzyman at (Michael Foord) writes:
> Sam Holden <sholden at> wrote in message news:<slrnck2sab.9d5.sholden at>...
> > What you want can't be done. You can reconstruct most of what you want
> > via the environment, but not all of it. HTTP Authentication passwords
> > leap to mind.
> Which means it's impossible to implement basic authentication in
> CGI... it has to be done on the server..... (which I can't do)...

If your server is running Apache, and it's configured leniently enough
(perhaps unlikely), there's a mod_rewrite hack that will allow you to
do this, IIRC.


More information about the Python-list mailing list