Referrer key missing form os.environ dictionary?
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Wed Sep 25 20:11:55 EDT 2013
On Wed, 25 Sep 2013 15:18:41 +0000, Grant Edwards wrote:
>> The Referer is not an environment variable.
>
> It is when you're writing a CGI app.
>
>> How would your shell know what URL you were just browsing?
>
> Because the HTTP server sets those environment variables before invoking
> the CGI app.
I stand corrected.
That's a pretty shitty design though, isn't it? Communicating via
environment variables. What is this, 1998? :-)
Mind you, I'm not sure what other alternatives exist.
--
Steven
More information about the Python-list
mailing list