Getting all client http headers

Oleg Broytmann phd at phd.fep.ru
Tue Jun 19 04:59:55 EDT 2001


On Tue, 19 Jun 2001, Joonas Paalasmaa wrote:
> > > How can I get all client http headers in python.
> > > Can I use cgi-module?
> >
> > Assuming that you implement a simple CGI-BIN program you have to
> > stick to the CGI-BIN environment vars which contain some of the HTTP
> > header information (usually prefix HTTP_).
>
> Do you mean os.environ?
> Does it contain ALL headers?

   No, it is not. And there is no way to get them all until you write your
own Web-server.

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list