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.
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