CGI command-line parameters

Chris Adie <>
Date: Mon, 16 May 1994 19:20:17 +0200
Message-id: <>
Precedence: bulk
From: Chris Adie <>
To: Multiple recipients of list <>
Subject: CGI command-line parameters
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Mailer: Pegasus Mail v3.1 (R1a)
X-Mailer: Pegasus Mail v3.1 (R1a)
Priority: normal
Priority: normal
Organization: Computing Service
Organization: Computing Service
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?


Chris Adie                                   Phone:  +44 31 650 3363
Edinburgh University Computing Service       Fax:    +44 31 662 4809
University Library, George Square            Email:
Edinburgh EH8 9LJ, United Kingdom