There may be additional implementation-defined CGI header fields,
whose field names SHOULD begin with "X-CGI-". The server MAY ignore
(and delete) any unrecognised header fields with names beginning "X-
CGI-" that are received from the script.
RFC 3875 CGI Version 1.1 October 2004
6.4. Response Message-Body
The response message-body is an attached document to be returned to
the client by the server. The server MUST read all the data provided
by the script, until the script signals the end of the message-body
by way of an end-of-file condition. The message-body SHOULD be sent
unmodified to the client, except for HEAD requests or any required
transfer-codings, content-codings or charset conversions.
response-body = *OCTET
7. System Specifications
7.1. AmigaDOS
Meta-Variables
Meta-variables are passed to the script in identically named
environment variables. These are accessed by the DOS library
routine GetVar(). The flags argument SHOULD be 0. Case is
ignored, but upper case is recommended for compatibility with
case-sensitive systems.
The current working directory
The current working directory for the script is set to the
directory containing the script.
Character set
The US-ASCII character set [9] is used for the definition of
meta-variables, header fields and values; the newline (NL)
sequence is LF; servers SHOULD also accept CR LF as a newline.
7.2. UNIX
For UNIX compatible operating systems, the following are defined:
Meta-Variables
Meta-variables are passed to the script in identically named
environment variables. These are accessed by the C library
routine getenv() or variable environ.
The command line
This is accessed using the argc and argv arguments to main(). The
words have any characters which are 'active' in the Bourne shell
escaped with a backslash.
The current working directory
The current working directory for the script SHOULD be set to the
directory containing the script.
RFC 3875 CGI Version 1.1 October 2004
Character set
The US-ASCII character set [9], excluding NUL, is used for the
definition of meta-variables, header fields and CHAR values; TEXT
values use ISO-8859-1. The PATH_TRANSLATED value can contain any
8-bit byte except NUL. The newline (NL) sequence is LF; servers
should also accept CR LF as a newline.
7.3. EBCDIC/POSIX
For POSIX compatible operating systems using the EBCDIC character
set, the following are defined:
Meta-Variables
Meta-variables are passed to the script in identically named
environment variables. These are accessed by the C library
routine getenv().
The command line
This is accessed using the argc and argv arguments to main(). The
words have any characters which are 'active' in the Bourne shell
escaped with a backslash.
The current working directory
The current working directory for the script SHOULD be set to the
directory containing the script.
=16= |