| Global
Variable |
Description |
Apache Environment
Value |
| %args$ [ ] |
This string array
will contain all the arguments passed to the
program from the original URL / Query request.
This array is one based. |
|
| %args |
This numeric
variable contains the number of arguments within
the array %args$. |
|
| %body_content$ |
This variable
will contain the complete contents of the body of
the request as received from the workstation. |
<raw
input> |
| %content_length |
This variable
contains the length of %body_content$ (length of
body text as received from the browser
workstation) |
CONTENT_LENGTH |
| %content_type$ |
This variable
will contain the type of contents received from
the browser. |
CONTENT_TYPE |
| %cookie.rcv |
The number of
cookies that were received from the workstation
with the request. |
|
| %cookie.snd |
This variable is
set initially to zero and will be incremented by
the *web/cookie to track the number of cookies
that will be downloaded to the workstation. |
|
| %document_root$ |
This will have
the root directory as provided by the
'DocumentRoot' directive in the Apache config.
Generally, this will be where the server files
reside. For Example
%DOCUMENT_ROOT$="/var/www/myweb/html"
|
DOCUMENT_ROOT |
| %document_url$ |
The actual URL
being processed. |
REDIRECT_URL |
| %http_accept$ |
This field will
contain the MIME types that the requesting
browser will accept according to the HTTP header |
HTTP_ACCEPT |
| %http_accept_encoding$ |
This contains the
types of MIME encoding that the requesting
browser will accept according to the HTTP header. |
HTTP_ACCEPT_ENCODING |
| %http_accept_language$ |
This field will
have the LANGUAGE types browser is requesting the
server to supply. For example
%HTTP_ACCEPT_LANGUAGE$="en-us"
|
HTTP_ACCEPT_LANGUAGE |
| %http_cookie$ |
This variable
will contain the string defining the cookies
received from the workstation. Each cookie will
be semi-colon separated. |
HTTP_COOKIE |
| %http_user_agent$ |
This field
contains the type of browser or requesting
program. |
HTTP_USER_AGENT |
| %lang$ |
Language code to
use for application. (This is hard coded to
".en") |
|
| %path_translated$ |
Pathname to the
Target file that the request was looking for. |
PATH_TRANSLATED |
| %path_info$ |
This field
contains the relative pathname. |
PATH_INFO |
| %print_fn |
The logical file
number that your application should print (send)
the HTML response to. When not running in Debug
mode and cookies disabled this will be zero,
otherwise it will point to a memory file that
hold the output pending transmission to the
workstation. |
|
| %query_string$ |
The parameters
following the "?" in the URL for this
request. |
QUERY_STRING |
| %remote_ip$ |
The remote
workstation/Browser IP address |
REMOTE_ADDR |
| %request_method$ |
The type of HTTP
request being processed. i.e. "POST",
"GET" or "HEAD" |
REQUEST_METHOD |
| %script_name$ |
This field will
contain the file name of the CGI Script relative
to DOCUMENT_ROOT directory. |
SCRIPT_NAME |
| %server_address$ |
The server IP
address plus port number |
SERVER_ADDR"+":"+"SERVER_PORT" |
| %server_ip$ |
The server IP
address |
SERVER_ADDR |
| %server_name$ |
The server name
as extracted from the HTTP request |
SERVER_NAME |
| %server_admin$ |
The email address
for the system administrator as defined in the
Apache config file. |
SERVER_ADMIN |
| %server_protocol$ |
The type and
version of protocol being used for the request
(HTTP/1.1, etc...) |
SERVER_PROTOCOL |
| %server_rootdir$ |
The document root
directory. |
|
| %server_software$ |
The name of the
server and associate software as reported to the
Browser. |
SERVER_SOFTWARE
|