Request Headers In a CGI

John J. Lee jjl at pobox.com
Mon Sep 13 15:48:54 EDT 2004


fuzzyman at gmail.com (Michael Foord) writes:
> Sam Holden <sholden at flexal.cs.usyd.edu.au> wrote in message news:<slrnck2sab.9d5.sholden at flexal.cs.usyd.edu.au>...
[...]
> > 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.


John



More information about the Python-list mailing list