#!/usr/local/bin/perl require "/u/kscott/www/doc/cgi/libcgi.pl" ; &html_header("Simple cgi") ; print "
\n" ; print "CGI/1.0 test script report:\n" ; print "
\n" ; printf("argc is ($#ARGV), argv is (@ARGV)\n") ; print "
\n" ;
printf("SERVER_SOFTWARE = %s
\n", $ENV{SERVER_SOFTWARE}) ;
printf("SERVER_NAME = %s
\n", $ENV{SERVER_NAME}) ;
printf("SERVER_ADMIN = %s
\n", $ENV{SERVER_ADMIN}) ;
printf("GATEWAY_INTERFACE = %s
\n", $ENV{GATEWAY_INTERFACE}) ;
printf("SERVER_PROTOCOL = %s
\n", $ENV{SERVER_PROTOCOL}) ;
printf("SERVER_PORT = %s
\n", $ENV{SERVER_PORT}) ;
printf("REQUEST_METHOD = %s
\n", $ENV{REQUEST_METHOD}) ;
printf("HTTP_ACCEPT = %s
\n", $ENV{$HTTP_ACCEPT}) ;
printf("PATH = %s
\n", $ENV{PATH}) ;
printf("PATH_INFO = %s
\n", $ENV{PATH_INFO}) ;
printf("PATH_TRANSLATED = %s
\n", $ENV{PATH_TRANSLATED}) ;
printf("DOCUMENT_ROOT = %s
\n", $ENV{DOCUMENT_ROOT}) ;
printf("SCRIPT_NAME = %s
\n", $ENV{SCRIPT_NAME}) ;
printf("SCRIPT_FILENAME = %s
\n", $ENV{SCRIPT_NAME}) ;
printf("QUERY_STRING = %s
\n", $ENV{QUERY_STRING}) ;
printf("HTTP_USER_AGENT = %s
\n", $ENV{HTTP_USER_AGENT}) ;
printf("REMOTE_HOST = %s
\n", $ENV{REMOTE_HOST}) ;
printf("REMOTE_ADDR = %s
\n", $ENV{REMOTE_ADDR}) ;
printf("REMOTE_USER = %s
\n", $ENV{REMOTE_USER}) ;
printf("AUTH_TYPE = %s
\n", $ENV{AUTH_TYPE}) ;
printf("CONTENT_TYPE = %s
\n", $ENV{CONTENT_TYPE}) ;
printf("CONTENT_LENGTH = %s
\n", $ENV{CONTENT_LENGTH}) ;
&html_trailer() ;