CGI Environment Variables

Everytime I want to do something advanced with cgi scripts, I end up wanting to know all the CGI environment variables. And everytime I end up writing a simple perl script to list them all. So, I thought, why not make this an online script available all the time? Ok, here goes the various environment variables.

DOCUMENT_ROOT/home/sdirisal/public_html
GATEWAY_INTERFACECGI/1.1
HTTP_ACCEPTtext/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODINGgzip
HTTP_ACCEPT_LANGUAGEen-us,en;q=0.5
HTTP_CACHE_CONTROLno-cache
HTTP_CONNECTIONclose
HTTP_HOSTwww.dirisala.net
HTTP_PRAGMAno-cache
HTTP_USER_AGENTCCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_X_CC_IDccc03-01
PATH/usr/local/bin:/usr/bin:/bin
QUERY_STRING
REDIRECT_STATUS200
REDIRECT_URL/scripts/cgi-environment-variables.do
REMOTE_ADDR38.107.179.227
REMOTE_PORT52793
REQUEST_METHODGET
REQUEST_URI/scripts/cgi-environment-variables.do
SCRIPT_FILENAME/home/sdirisal/public_html/scripts/cgi-environment-variables.pl
SCRIPT_NAME/scripts/cgi-environment-variables.pl
SERVER_ADDR184.172.176.16
SERVER_ADMINwebmaster@dirisala.net
SERVER_NAMEwww.dirisala.net
SERVER_PORT80
SERVER_PROTOCOLHTTP/1.1
SERVER_SIGNATURE
Apache Server at www.dirisala.net Port 80
SERVER_SOFTWAREApache
UNIQUE_IDTzMC47issBAAAEaHkFcAAADA

© 2008 Dirisala.Net