Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But the output has no any information about server:#! /usr/local/bin/perl print "Content-type: text/html", "\n\n"; print "<HTML>", "\n"; print "<HEAD><TITLE>About this Server</TITLE></HEAD>", "\n"; print "<BODY><H1>About this Server</H1>", "\n"; print "<HR><PRE>", "\n"; print "Server Name: ", $ENV{'SERVER_NAME'}, "<BR>","\n"; print "Running on Port: ", $ENV{'SERVER_PORT'}, "<BR>", "\n"; print "Server Software: ", $ENV{'SERVER_SOFTWARE'},"<BR>", "\n"; print "Server Protocol: ", $ENV{'SERVER_PROTOCOL'},"<BR>", "\n"; print "CGI Revision: ", $ENV{'GATEWAY_INTERFACE'},"<BR>", "\n"; print "<HR></PRE>", "\n"; print "</BODY></HTML>", "\n"; exit (0);
I use Red Hat 7.2 version OS, and SSH both give me the same result, What is wrong? Thanks in advance!Content-type: text/html <HTML> <HEAD><TITLE>About this Server</TITLE></HEAD> <BODY><H1>About this Server</H1> <HR><PRE> Server Name: <BR> Running on Port: <BR> Server Software: <BR> Server Protocol: <BR> CGI Revision: <BR> <HR></PRE> </BODY></HTML>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: About server information
by projekt21 (Friar) on Jul 29, 2003 at 13:52 UTC | |
by Anonymous Monk on Jul 29, 2003 at 15:30 UTC | |
by projekt21 (Friar) on Jul 29, 2003 at 15:58 UTC | |
|
Re: About server information
by DrHyde (Prior) on Jul 29, 2003 at 13:54 UTC |