iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Using Common Gateway Interface (CGI) Programs
iTP Secure WebServer System Administrator’s Guide—522659-001
8-22
Passing Input
Passing Input
Input is passed to CGI programs by the following means:
•
Command Line (See below)
Arguments from the command line are placed into a variable argument list, and the
argument counter is appropriately incremented.
•
Query Strings (See below)
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.
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)