[Tutor] environment data [CGI]

Lloyd Kvam pythontutor@venix.com
Sat, 29 Dec 2001 13:50:35 -0500

try saying ...?aaa=1&name=Source

So far as I know, unset variables don't make it through to cgi scripts
(at least under apache).  Obviously, a lot of settings could affect this.

Blake Winton wrote:

> * Danny Yoo <dyoo@hkn.eecs.berkeley.edu> [011229 01:48]:
>>On Fri, 28 Dec 2001, Sean 'Shaleh' Perry wrote:
>>>>cgi module leaves me baffled, but if I can just read the bloddy
>>>>environment variable I can run with it from there.
>>So cgi.FieldStorage() almost behaves like a dictionary, with the exception
>>that to get at the actual value, we need to do something like
>>'form[key].value' instead of just 'form[key]'.  Why?
> My question is why I can't get the "aaa" from the url
> http://tor.dhs.org/cgi-bin/daily.py?aaa&name=Source
> the "name=Source" comes through fine, but the aaa is lost.
> Later,
> Blake.

Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358