http://maplepark.com/~drf5n/cgi-bin/inputtest.cgi

This program, inputtest.cgi, was written by David Forrest, way too late at night You may want to look at how it uses cgi-lib.pl and other things.


Method GET: ReadParsed QUERY_STRING

Method GET: ReadParsed QUERY_STRING




Environment

Environment

DOCUMENT_ROOT
:/var/www/html:
GATEWAY_INTERFACE
:CGI/1.1:
HTTP_ACCEPT
:text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5:
HTTP_ACCEPT_CHARSET
:ISO-8859-1,utf-8;q=0.7,*;q=0.7:
HTTP_ACCEPT_ENCODING
:gzip:
HTTP_ACCEPT_LANGUAGE
:en-us,en;q=0.5:
HTTP_CACHE_CONTROL
:no-cache:
HTTP_CONNECTION
:close:
HTTP_HOST
:maplepark.com:
HTTP_PRAGMA
:no-cache:
HTTP_USER_AGENT
:CCBot/1.0 (+http://www.commoncrawl.org/bot.html):
HTTP_X_CC_ID
:ccc02-01:
PATH
:/bin/:/usr/bin/:/usr/local/bin/:
REMOTE_ADDR
:38.107.179.219:
REMOTE_PORT
:51164:
REQUEST_METHOD
:GET:
REQUEST_URI
:/~drf5n/cgi-bin/inputtest.cgi:
SCRIPT_FILENAME
:/home/drf5n/public_html/cgi-bin/inputtest.cgi:
SCRIPT_NAME
:/~drf5n/cgi-bin/inputtest.cgi:
SERVER_ADDR
:99.178.153.41:
SERVER_ADMIN
:webmaster@maplepark.com:
SERVER_NAME
:maplepark.com:
SERVER_PORT
:80:
SERVER_PROTOCOL
:HTTP/1.1:
SERVER_SIGNATURE
:
Apache/2.2.15 (Fedora) Server at maplepark.com Port 80

:
SERVER_SOFTWARE
:Apache/2.2.15 (Fedora):

My Source Code

inputtest.cgi