A Test CGI Script that Works


Although this is non-interactive webpage, it is created each time the web server here gets a request for the URL. You can see the actual guts of it at the showGutsWorking cgi here.

Is that it?

Yes. not very exciting, is it?

Everything the webserver has in the execution environment for this script, including some info about you

Can you spot it?

Hint: on the right of the equals signs, look for familiar names and numbers.

Apache Server at thepaperpusher.net Port 80
HTTP_X_HTTP_PROTO=HTTP/1.0 HTTP_X_LOG_8490= UNIQUE_ID=WSNxs8C5hhkAAHoB-doAAAB5 HTTP_USER_AGENT=CCBot/2.0 (http://commoncrawl.org/faq/) SERVER_PORT=80 HTTP_HOST=thepaperpusher.net HTTP_X_REAL_IP= DOCUMENT_ROOT=/home3/thepaper/public_html SCRIPT_FILENAME=/home3/thepaper/public_html/working.cgi REQUEST_URI=/working.cgi SCRIPT_NAME=/working.cgi HTTP_CONNECTION=close REMOTE_PORT=23959 PATH=/usr/local/bin:/usr/bin:/bin PWD=/home3/thepaper/public_html SERVER_ADMIN=webmaster@thepaperpusher.net HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 REMOTE_ADDR= SHLVL=1 SERVER_NAME=thepaperpusher.net SERVER_SOFTWARE=Apache QUERY_STRING= SERVER_ADDR= GATEWAY_INTERFACE=CGI/1.1 SERVER_PROTOCOL=HTTP/1.1 HTTP_ACCEPT_ENCODING=x-gzip, gzip, deflate REQUEST_METHOD=GET _=/usr/bin/env

And that's really everything to this.