List of cgi environment variables and their values:
argc is 3. and argv is cup of joe.
- SERVER_SOFTWARE = Apache
- SERVER_NAME = www.cs.columbia.edu
- GATEWAY_INTERFACE = CGI/1.1
- SERVER_PROTOCOL = HTTP/1.1
- SERVER_PORT = 80
- REQUEST_METHOD = GET
- HTTP_ACCEPT = text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
- HTTP_USER_AGENT = CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
- HTTP_REFERER =
- HTTP_IF_MODIFIED_SINCE =
- PATH_INFO = /dir/info
- PATH_TRANSLATED = redirect:/index.php/info
- SCRIPT_NAME = /~dpo1/cgi-bin/test.cgi
- QUERY_STRING = cup+of+joe
- REMOTE_HOST =
- REMOTE_ADDR = 38.107.191.95
- REMOTE_USER =
- AUTH_TYPE =
- CONTENT_TYPE =
- CONTENT_LENGTH =
- DOCUMENT_ROOT = /import/html
HTTP_USER_AGENT='CCBot/1.0 (+http://www.commoncrawl.org/bot.html)'