[Zope-dev] getting request variables values

Steve Alexander steve@cat-box.net
Fri, 21 Jul 2000 08:19:32 +0100


Steve Alexander wrote:
> 
> My question is "why was __getitem__ of HTTPRequest.py designed this
> way?".
> 
> Is there a good reason that it filters the keys according to membership
> of a standard-cgi-keys list, or whether they start with 'HTTP_' ?
> Would there be any disadvantage to altering __getitem__ so that it
> behaves according to its docstring?

...although the class docstring says that the environment variable names
are as in the CGI specification
(http://hoohoo.ncsa.uiuc.edu/cgi/env.html). It doesn't say that they
should **only** be from the CGI specification, though.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net