Landon Noll looking up Fremont Peak Observatory 0.8m telescope Leonid 2001 meteor squall count at Fremont Peak

whoami - what your browser sends and receives

[chongo's home] [Astronomy] [Mathematics] [Prime Numbers] [Programming] [Technology] [contacting Landon]


Who Am I???

About the whoami.cgi script:

The whoami.cgi CGI script will show you what your browser sends to the remove server. It will also show additional information about the environment on the www.isthe.com server itself.

The source for this whoami.cgi CGI script is available.


Viewing the results:

The results of whoami.cgi will be displayed in several parts:
  1. Process execution
    • process argument count
    • value of the process arguments
    • current working directory
    • user id
    • group id
    • group membership

  2. CGI environment variables Various environment variables related to CGI scripts. Common ones reported are:
    • $CONTENT_LENGTH - length of POST method standard input
    • $CONTENT_TYPE - format type of POST method standard input
    • $GATEWAY_INTERFACE - CGI interface version
    • $PATH_INFO - path beyond CGI script in URL
    • $PATH_TRANSLATED - translation of $PATH_INFO to filename
    • $QUERY_STRING - string beyond first ? in URL
    • $REMOTE_ADDR - IP address of the remote host
    • $REMOTE_HOST - remote hostname
    • $REQUEST_METHOD - CGI info request method (GET or POST)
    • $SCRIPT_NAME - CGI script to be executed
    • $SERVER_NAME - HTTP server hostname running the CGI
    • $SERVER_PORT - HTTP server contact port
    • $SERVER_PROTOCOL - HTTP server HTTP protocol
    • $SERVER_SOFTWARE - HTTP server software
    • $SERVER_URL - URL of the HTTP server

  3. HTTP environment variables:
    Various environment variables that begin with HTTP. Common ones reported are:
    • $HTTP_ACCEPT - HTTP server formats accepted
    • $HTTP_CONNECTION - HTML server connection type
    • $HTTP_HOST - HTML server hostname
    • $HTTP_PRAGMA - HTML server pragma
    • $HTTP_REFERER - URL referenced
    • $HTTP_USER_AGENT - User agent software

  4. other environment variables:
    Any other environment variables found. Common ones reported are:
    • $PATH - execution path of the CGI script
    • $TZ - timezone of CGI script

  5. data on standard input:
    Data read on standard input. The POST method passes data on standard input in lines of the form: name=value.
The source for this whoami.cgi CGI script is available.

plain CGI URL - (GET method)

This is just a request for a CGI script with no extra path information and no query using the GET method.

/cgi-bin/chongo/whoami.cgi


CGI URL with extra path - (GET method)

This is a request for a script with the extra path ``/extra/path'', and no query using the GET method.

/cgi-bin/chongo/whoami.cgi/extra/path


CGI URL with a query - (GET method)

This is a query ``query'' for a script with no extra path information using the GET method.

/cgi-bin/chongo/whoami.cgi?query


CGI URL with extra path and a query - (GET method)

This is a request for a script with the extra path ``/extra/path'', and a query ``query'' using the GET method.

/cgi-bin/chongo/whoami.cgi/extra/path?a+query


CGI simple FORM - (GET method)

You'll need a browser which supports HTML forms for this example. Clicking the submit button will execute the CGI with no query and no extra path information using the GET method.

Press me and then click Submit.


CGI simple FORM - (POST method)

You'll need a browser which supports HTML forms for this example. Clicking the submit button will execute the CGI with no query and no extra path information using the POST method.

Press me and then click Submit.


CGI complex FORM - (GET method)

You'll need a browser which supports HTML forms for this example. Clicking the submit button will execute the CGI with no query and no extra path information using the GET method.



Radio test: [A ] [B ] [C ]

Checkbox test: D E F

Field 1: 
Field 2: 
Password: 
Click to this form

Click to


CGI complex FORM - (POST method)

You'll need a browser which supports HTML forms for this example. Clicking the submit button will execute the CGI with no query and no extra path information using the POST method.



Radio test: [A ] [B ] [C ]

Checkbox test: D E F

Field 1: 
Field 2: 
Password: 
Click to this form

Click to


CGI complex FORM with query string - (GET method)

You'll need a browser which supports HTML forms for this example. Clicking the submit button will execute the CGI with no extra path and a query string of ``query'' using the GET method.

Radio test: [A ] [B ] [C ]

Checkbox test: D E F

Field 1: 
Field 2: 
Password: 
Click to this form

Click to


CGI complex FORM with query string - (POST method)

You'll need a browser which supports HTML forms for this example. Clicking the submit button will execute the CGI with no extra path and a query string of ``query'' using the POST method.

Radio test: [A ] [B ] [C ]

Checkbox test: D E F

Field 1: 
Field 2: 
Password: 
Click to this form

Click to


CGI complex FORM with extra path & query string - (GET method)

You'll need a browser which supports HTML forms for this example. Clicking the submit button will execute the CGI with a query string of ``query'' and an extra path of ``/extra/path'' using the GET method.

Radio test: [A ] [B ] [C ]

Checkbox test: D E F

Field 1: 
Field 2: 
Password: 
Click to this form

Click to


CGI complex FORM with extra path & query string - (POST method)

You'll need a browser which supports HTML forms for this example. Clicking the submit button will execute the CGI with a query string of ``query'' and an extra path of ``/extra/path'' using the POST method.

Radio test: [A ] [B ] [C ]

Checkbox test: D E F

Field 1: 
Field 2: 
Password: 
Click to this form

Click to



My CGI demo page contains more examples of CGI scripts.



Valid HTML 4.01!

© 1994-2013 Landon Curt Noll
chongo (was here) /\oo/\
$Revision: 7.7 $ $Date: 2014/02/12 01:48:47 $