The web server also makes available information about the user and the server, including such things as what type of browser made the request. |
A list of environment variables available to the CGI program: |
GATEWAY_INTERFACE REMOTE_HOST |
SERVER_NAME REMOTE_ADDR |
SERVER_SOFTWARE AUTH_TYPE |
SERVER_PROTOCOL REMOTE_USER |
SERVER_PORT REMOTE_IDENT |
REQUEST_METHOD CONTENT_TYPE |
PATH_INFO CONTENT_LENGTH |
PATH_TRANSLATED HTTP_FROM |
SCRIPT_NAME HTTP_ACCEPT |
DOCUMENT_ROOT HTTP_USER_AGENT (browser) |
QUERY_STRING HTTP_REFERER |