Index CGI Environment Variables SSI Command SSI Environment Variables SSI Time Values
CGI Environment Variables
Environment Variables is a set of pre-defined values use to communicate between servers and clients over the internet. Those values are resident on HTTP header, so two machines would know who are they talking with, and where, how to communicate etc. Programmers may use those variables to retrieve client's information.
Environment Variable Description 
AUTH_TYPE  The authentication method used to validate a user.
(none)
CONTENT_LENGTH  Indicates the number of bytes of form or query date received.
(none)
CONTENT_TYPE  The media type of the query data, such as "text/html"
(none)
DOCUMENT_ROOT  The directory from which Web documents are served. 
/web/sites/us/members/htdocs
GATEWAY_INTERFACE  The revision of the Common Gateway Interface that the server uses.
CGI/1.1
HTTP_ACCEPT  A list of the media types that client can accept. 
*/*
HTTP_FROM  The email address of the user making the query.
(none)
HTTP_REFERER  The URL of the document that the client points to before accessing the CGI program.
(none)
HTTP_USER_AGENT  The browser the client is using to issue the request.
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH_INFO  Additional path information appended to the CGI script.
(none)
PATH_TRANSLATED  The translated version of the path given by the variable PATH_INFO.
(none)
QUERY_STRING  Contains and query information submitted by the user as a result of a GET-method
REMOTE_ADDR The host address of the computer running the Web browser.
209.202.244.9
REMOTE_HOST  The host name of the computer running the Web browser.
(none)
REMOTE_IDENT  The user making the request.
(none)
REMOTE_USER  Contains the userid of the person using the WWW browser
-
REMOTE_METHOD  The method used to call the script (usually GET or PORT)
(none)
SCRIPT_NAME  The virual path of the script being executed.
/env_var.html
SERVER_NAME  THe host name of the computer on which the server is running.
darrencgi.tripod.com
SERVER_PORT  Indicates the port number on which the server is listening of HTTP connections (default is 80).
80
SERVER_PROTOCOL  Indicates the protocol in use.
HTTP/1.1
SERVER_SOFTWARE Tells the name and version of HTTP server you are running.
Squeegit/1.2.5 (3_sir)
Webmaster : Darren Kong
E-mail : darrenkong@hotmail.com