Help for this page

Select Code to Download


  1. or download this
    #!/perl/bin/perl -wT
    #test.cgi
    ...
    print "<body>\n";
    print "<h2>Hello, world!</h2>\n";
    print "</body></html>\n";
    
  2. or download this
    #!/perl/bin/perl -wT##  printenv -- demo CGI program which just prints
    + its environmentBEGIN {    $|=1;    print "Content-type: text/html\n\
    +n";
        use CGI::Carp('fatalsToBrowser');
    ...
        print "${var}=\"${val}\"\n";
    }
    close FILE;
    
  3. or download this
    server logs, error;
    at run time.
    ...
    127.0.0.1 - - [04/Jan/2014:14:24:04 -0800] "GET /test.cgi HTTP/1.1" 40
    +3 210
    127.0.0.1 - - [04/Jan/2014:14:24:05 -0800] "GET /favicon.ico HTTP/1.1"
    + 200 1959
    127.0.0.1 - - [04/Jan/2014:14:27:00 -0800] "GET /printenv.pl HTTP/1.1"
    + 403 213
    
  4. or download this
    ALLUSERSPROFILE="C:\ProgramData"
    APPDATA="C:\Users\user\AppData\Roaming"
    ...
    USERNAME="user"
    USERPROFILE="C:\Users\user"
    WINDIR="C:\Windows"
    
  5. or download this
    # This is the main Apache HTTP server configuration file.  It contains
    + the
    # configuration directives that give the server its instructions.
    ...
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>