Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    {
    ...
    
    my $pid = TestWebServer->new(8080)->background();
    print "Use 'kill $pid' to stop server.\n";
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    } else {
        print $resp->status_line;
    }
    
  3. or download this
    $ ./HTTPserver.pl
    Use 'kill 25807' to stop server.
    ...
    <p>You sent: user='foo', pass='bar'</p>
    </body>
    </html>