Help for this page

Select Code to Download


  1. or download this
    (cgi_test)% cat test.cgi
    #!/WWW/bin/perl -wT
    $|=1;
    print "Content-type: text/html\n\n";
    print "hello\n";
    
  2. or download this
    in http.log:
    whars0ck.europe.nortel.com - 0502164 [18/May/2004:10:04:28 +0100] "GET
    + /~callum/cgi_test/test.cgi HTTP/1.1" 500 403
    
    in http-error.log:
    [Tue May 18 10:04:28 2004] [error] [client 47.165.6.42] Premature end 
    +of script headers: /u/callum/public_html/cgi_test/test.cgi
    
  3. or download this
    ErrorDocument 403 /admin/error/403.cgi
    
  4. or download this
    (logs)% /u/callum/public_html/cgi_test/test.cgi
    Content-type: text/html
    
    hello
    (logs)%
    
  5. or download this
    AddHandler cgi-script .cgi .sh