#!/usr/bin/perl # Remember that CGI programs have to close out the HTTP header # (with a pair of newlines), after giving the Content-type: # and any other relevant or available header information. # Strictly speaking, this header (and the double-newline) should # not be printed if the incoming request was in HTTP/0.9. # Also, we should stop after the header if REQUEST_METHOD == "HEAD". # But that's too much refinement for this very crude example. print "Content-type: text/html\n\n"; print "
\n\n
\n";
if ($ENV{"QUERY_STRING"}=~/ident/ && $ENV{"REMOTE_PORT"} ne "") {
# Uses idlookup-1.2 from Peter Eriksson \n$b
\n";
}
print "\nBoa http server\n";
print "\n";
exit 0;