CGI Environment Variables

This script lists some of the environment variables to which a cgi script has access. Making good use of this information is essential for writing good scripts.

A blank value means that the server did not provide the variable in question.

The query string is (FORM GET):
The content type of the data is (POST, PUT):
The name and revision of info protocol is: HTTP/1.0
The URL of the referer is:
The translated PATH_INFO is:
The browser of the client is: CCBot/2.0 (http://commoncrawl.org/faq/)
The MIME types that the client will accept are: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
The hostname making the request is: ec2-54-82-31-133.compute-1.amazonaws.com
The CGI specification revision is: CGI/1.1
The remote user is (RFC 931):
The server software is: Apache/1.3.20 (Unix)
The extra path info is:
The authenticated user is:
The IP address of the remote host is: 54.82.31.133
The script name is: /showroom/summary.cgi
The server hostname, DNS alias, or IP address is: www.mathconsult.ch
The server document root directory is: /www/docroots/mc
The info request method is: GET
The length of the content is:
The authentication method is:
The port number for the server is: 80

Perl Script adapted from Shishir Gundavaram, CGI Programming on the World Wide Web, O'Reilly & Associates, 1996.