Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -1,6 +1,6 @@
|
|||
while (++(our $vn)) {
|
||||
open NC, "|-", qw(nc -l -p 8080 -q 1);
|
||||
print NC "HTTP/1.0 200 OK\xd\xa",
|
||||
"Content-type: text/plain; charset=utf-8\xd\xa\xd\xa",
|
||||
"Goodbye, World! (hello, visitor No. $vn!)\xd\xa";
|
||||
open NC, "|-", qw(nc -l -p 8080 -q 1);
|
||||
print NC "HTTP/1.0 200 OK\xd\xa",
|
||||
"Content-type: text/plain; charset=utf-8\xd\xa\xd\xa",
|
||||
"Goodbye, World! (hello, visitor No. $vn!)\xd\xa";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use Plack::Runner;
|
||||
my $app = sub {
|
||||
return [ 200,
|
||||
[ 'Content-Type' => 'text/html; charset=UTF-8' ],
|
||||
[ '<html><head><title>Goodbye, world!</title></head><body>Goodbye, world!</body></html>' ]
|
||||
]
|
||||
[ 'Content-Type' => 'text/html; charset=UTF-8' ],
|
||||
[ '<html><head><title>Goodbye, world!</title></head><body>Goodbye, world!</body></html>' ]
|
||||
]
|
||||
};
|
||||
my $runner = Plack::Runner->new;
|
||||
$runner->parse_options('--host' => 'localhost', '--port' => 8080);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue