CGI command-line parameters

Chris Adie (CJA@ml0.ucs.edinburgh.ac.uk)
Mon, 16 May 1994 15:51:57 +0000


The CGI spec says that if a query string does not contain an = character,
then the server passes it as a command-line parameter to the script (as
well as providing it in the QUERY_STRING environment variable).

The QUERY_STRING environment variable contains the undecoded query
information (ie %xx is not interpreted).

Should the query string be decoded before being passed to the script on
the command line?

(I would argue that it should be decoded.)

Second question - what is the difference between CGI/1.0 and CGI/1.1?

Regards,

Chris Adie Phone: +44 31 650 3363
Edinburgh University Computing Service Fax: +44 31 662 4809
University Library, George Square Email: C.J.Adie@edinburgh.ac.uk
Edinburgh EH8 9LJ, United Kingdom