programming-examples/perl/CGI/$ENV{'HTTP_USER_AGENT'}, $ENV{'SERVER_PROTOCOL'}, $ENV{'HTTP_HOST'}.pl
2019-11-15 12:59:38 +01:00

7 lines
224 B
Perl

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Your browser is a $ENV{'HTTP_USER_AGENT'} <BR>";
print "The Server Protocol is $ENV{'SERVER_PROTOCOL'}<BR>";
print "The HTTP Host is $ENV{'HTTP_HOST'}<BR>";