|
|||||||||
|
Command line argumentsThere is only one situation where inputs to the CGI script are passed via the command line, and that is the case of a query string that does not contain equals signs. In this case the server splits the query string into its component words as delimited by plus signs, decodes any url-encoded data within the words, and places them into successive elements of the argument vector of the CGI script. The first word of the query string will be in the first element of the argument vector after the script command name (which will be in element zero). If the length of the query string exceeds the maximum length of a command line or exceeds some other restriction, the server will not place any values into the argument vector. The query string contents are always passed, without decoding or splitting into words, in the QUERY_STRING environment variable.
Spinning the Web by Andrew Ford |
||||||
Copyright © 1996-2002 Ford & Mason Ltd |