1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/tests/examples/docroot/cgi-bin/msie-test.cgi
2015-01-23 17:24:36 +01:00

17 lines
408 B
Perl
Executable File

#!/usr/bin/perl
my $agent = $ENV{HTTP_USER_AGENT};
if ($agent =~ /MSIE/)
{
print "Content-Type: text/html\n\n";
print "\<span\ class\=\"code\"\>You\'re\ using\ Microsoft\&reg\;\ Internet\ Explorer\&reg\;\ 5\.0\<\/span\>\n";
}
else
{
print "Content-Type: text/html\n\n";
print "\<span\ class\=\"code\"\>You\'re\ not\ using\ Microsoft\&reg\;\ Internet\ Explorer\&reg\;\ 5\.0\<\/span\>\n";
}
exit 0;