iTP Secure WebServer System Administrator's Guide (Version 7.0)
Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrator’s Guide—523346-012
8-23
Passing Input
Passing Input
Input is passed to CGI programs by these ways:
•
Command Line on page 8-24
Arguments from the command line are placed into a variable argument list, and the
argument counter is appropriately incremented.
•
Query Strings on page 8-24
The CGI program receives data through the QUERY_STRING environment
variable if AUTOMATIC_FORM_DECODING is turned off. If
AUTOMATIC_FORM_DECODING is turned on, the data is stored not only in the
QUERY_STRING environment variable, but also in a separate environment
variable for each name/value pair.
•
Extra Path Information on page 8-24
HTTP_RANGE This variable specifies the number of bytes (or a range of
bytes if the range is indicated) a Web client is able to
retrieve.
Format:
bytes=number-of-bytes
or
bytes=range-of-bytes
where
range-of-bytes
consists of a starting value and an ending value
separated by a hyphen (-); omit the starting value
if you want the Web client to be able to retrieve
the last number of bytes specified by
range-of-bytes.
Examples:
bytes=0-499
specifies a range from 0 to 499
bytes=-250
specifies the previous 250 bytes
HTTP_USER_AGENT This variable identifies the Web client software being
used to access the server.
Format:
browser-name/version
Example:
Mozilla/4.0
Table 8-4. Sample HTTP Header Variables (page 2 of 2)