[mod_python] The referer environment variable

Nick nick at dd.revealed.net
Fri Nov 5 10:50:19 EST 2004

Gustavo Córdova Avila wrote:
> Robert Geller wrote:
>> Am I just stupid or is mod_python missing a referer member for the
>> req(uest) object??? I can't seem to get the referer of a client!!! And,
>> of course, importing the cgi module doesn't work.
> Check out:
>    request.headers_in["referer"]

You can also get the HTTP_REFERER CGI variable in the request.subprocess_env 
after a call to request.add_common_vars()


More information about the Mod_python mailing list