michael@0: #! /usr/bin/perl
michael@0: # This Source Code Form is subject to the terms of the Mozilla Public
michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0:
michael@0:
michael@0: print "Content-type: text/html\n\n";
michael@0: print "Server Name: ", $ENV{'SERVER_NAME'}, "
", "\n";
michael@0: print "Server Port: ", $ENV{'SERVER_PORT'}, "
", "\n";
michael@0: print "Server Software: ", $ENV{'SERVER_SOFTWARE'}, "
", "\n";
michael@0: print "Server Protocol: ", $ENV{'SERVER_PROTOCOL'}, "
", "\n";
michael@0: print "CGI Revision: ", $ENV{'GATEWAY_INTERFACE'}, "
", "\n";
michael@0: print "Browser: ", $ENV{'HTTP_USER_AGENT'}, "
", "\n";
michael@0: print "Remote Address: ", $ENV{'REMOTE_ADDR'}, "
", "\n";
michael@0: print "Remote Host: ", $ENV{'REMOTE_HOST'}, "
", "\n";
michael@0: print "Remote User: ", $ENV{'REMOTE_USER'}, "
", "\n";
michael@0: print "You typed:\n";
michael@0:
michael@0: while( $_ = ) {
michael@0: print "$_";
michael@0: }
michael@0: