|Protocol-specific authentication method used to validate the user.|
|Length of the data passed to the CGI program through STDIN; implies REQUEST_METHOD is "POST".|
|For queries which have attached information, such as HTTP POST and PUT, this is the MIME content type of the data.|
|The directory from which web documents are served.|
|CGI specification revision number to which server complies.|
|List of the MIME types that the client can accept.|
|Cookie values. [See Cookie Demo.]|
|The Email address of the user making the request. [Most browsers do not support this variable.]|
|The URL of the document that the client pointed to before accessing the CGI program.|
|The browser the client is using.|
|Extra path information, as given by the client.|
|Server-provided version of PATH_INFO (with virtual-to-physical mapping).|
|Query information passed to the program following URL and "?"; implies REQUEST_METHOD is "GET".|
|IP address of remote host making the request.|
|Remote hostname making the request.|
|If the HTTP server supports RFC 931 identification, then this variable will be set to the remote username retrieved from the server. Usage of this variable should be limited to logging only.|
|Authenticated username (see AUTH_TYPE).|
|The method with which the request was made (e.g., "GET" or "POST" or "HEAD").|
|Virtual path to the script being executed (used for self-referencing URLs).|
|Server host name, DNS alias, or IP address (as it would appear in self-referencing URLs).|
|Port number the request was sent to (i.e., the host on which the server is running).|
|Name and revision of the information protocol this request came in with.|
|Name and version of the server software answering the request.|
One way to invoke a Perl program is with an HTML <A HREF=...>...</A> link. Parameters are passed to Perl after the URL and a ?. Try it...
Hit me: /cgi-bin/environment.cgi?foo=1&bar=2
When this page reappears, you should see
REQUEST_METHOD of "GET".
The parameter names and values arrive via QUERY_STRING,
and should be "foo=1&bar=2".
Another way to invoke a Perl program is with an HTML <FORM METHOD=post> tag, one or more <INPUT> tags, and an <INPUT TYPE=submit> tag. Try it...
When this page reappears, you should see REQUEST_METHOD of "POST". The parameter names and values arrive via STDIN, and would be something like "foo=1&bar=2". CONTENT_LENGTH will be set to the length of that string. CONTENT_TYPE will be something like "application/x-www-form-urlencoded".
You are visitor since 18 August 1996
Copyright © 1996-1997 Rex Swain
Email firstname.lastname@example.org, Web http://www.rexswain.com/
Permission granted to distribute unmodified copies
Reports of errors or omissions appreciated