Environment Variable
Meaning
SERVER_NAME
The Host Name and IP address when the CGI script is running.
Server_software
The type of your server, such as CERN/3.0 or NCSA/1.3.
Gateway_interface
The running CGI version. For Unix servers, this is CGI/1.1.
Server_protocol
The HTTP protocol running on the server. The HTTP/1.0 protocol is used here.
Server_port
The TCP port running on the server. Generally, the web server is 80.
Request_method
Post or get depends on how your form is submitted.
Http_accept
Content-types that can be directly received by the browser, which can be defined by the HTTP accept header.
Http_user_agent
The name, version, and additional platform information of the browser that submits the form.
Http_referer
The URL of the text to submit the form. Not all browsers send this message and do not rely on it.
Path_info
The additional path information is sent by the browser through the get method.
Path_translated
The path specified by the system in path_info.
Script_name
The path to this CGI script is displayed in the URL (for example,/cgi-bin/thescript ).
QUERY_STRING
Script Parameters or form input items (if submitted with get). QUERY_STRING contains parameters following the question mark in the URL.
Remote_host
Host Name of the submitted script. This value cannot be set.
Remote_addr
Host IP address of the script submitted.
Remote_user
User name for script submission. This value can be set if Server authentication is activated.
Remote_ident
If the Web server is running on ident (a protocol that confirms that the user is connected to you), the system that submits the form is also running Ident, and this variable contains the ident return value.
Content_type
If the form is submitted using post, the value will be application/X-WWW-form-urlencoded. In the form for uploading files, content-type is a multipart/form-data.
Content_length
The number of bytes in the standard input port for the form submitted using post.