Server Environment Variables

CGI (Common Gateway Interface) and ASP (Active Server Pages) Environment Variables can be used to retrive information about the Server environment, client information,...
In CGI applications, use the environment variable function such as GetEnv() in C++
In ASP, use Request.ServerVariables()
Samples in this page are really retrived at runtime, so your browser information is what your own browser sent to the server.

ALL_HTTP

Server software and version.
Format : name/version
Sample : Microsoft-IIS/6.0

SERVER_SOFTWARE

Server software and version.
Format : name/version
Sample : Microsoft-IIS/6.0

SERVER_NAME

Server Hostname or IP if Hostname is not available.
Format : Hostname or IP
Sample : www.vo-consulting.be

HTTP_REFERER

URL of the page which sent the user to this page.
Format : url
Sample :

HTTP_ACCEPT_LANGUAGE

Client language.
ISO 639:1988 language codes and ISO 3166 country code.
Format : Language(-locale)
Sample : fr-be

PATH_INFO

Script path (web)
Format : string
Sample : /Documentation/Web/EnvVar.asp

SERVER_PORT

Server Port number.
Format : TCP/IP Port number
Sample : 80

SERVER_PROTOCOL

Server Protocol name and version.
Format : protocol/version
Sample : HTTP/1.1

SCRIPT_NAME

Script URL.
Can be used with SERVER_NAME to have the complete URL.
Sample : /Documentation/Web/EnvVar.asp

GATEWAY_INTERFACE

N/A
Format : Interface/Version
Sample : CGI/1.1

PATH_TRANSLATED

Script path (server filesystem)
Format : string
Sample : F:\Inetpub\wwwroot\documentation\Web\CGI SrvVar.asp

QUERY_STRING

String following the "?" in the URL, try calling this page with "?sample=hello".
Format : string
Sample :

REMOTE_HOST

N/A
Format : Hostname or IP
Sample : 62.72.116.158

REMOTE_ADDR

N/A
Format : IP
Sample : 62.72.116.158

REMOTE_USER

N/A
Format : Username
Sample :

REMOTE_IDENT

RFC931 Username.
Format : Username
Sample :

AUTH_TYPE

N/A
Format : Auth. Type
Sample :

REQUEST_METHOD

Method used for request, usually GET or POST.
Format : Method
Sample : GET

CONTENT_TYPE

N/A
Format : MIME Type
Sample :

CONTENT_LENGTH

N/A
Format : Length
Sample : 0

HTTP_ACCEPT

N/A
Format : MIME type/subtype, ...
Sample : */*

HTTP_USER_AGENT

Browser information string.
Format : Software/Version
Sample : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

More info : https://home.ubalt.edu/abento/452/asp/server.html