CGI: how to get referer header?

Thomas Guettler pan-newsreader at
Sat Mar 22 14:02:11 CET 2003

On Sat, 22 Mar 2003 13:07:09 +0100, nihilo wrote:

> I am trying to get the referer and user agent headers in a cgi program
> I'm writing. I haven't been able to find any clear information on how to
> do this, but I've been trying the following:
> referer = cgi.parse_header('Referer') agent =
> cgi.parse_header('User-Agent')



Thomas Guettler <guettli at>

More information about the Python-list mailing list