Hello world/Web server: Difference between revisions
m
→{{header|Wren}}: Changed to Wren S/H
(→min: add) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 232:
}</syntaxhighlight>
=={{header|
==={{header|BaCon}}===
Requires BaCon 4.2 or higher.
<syntaxhighlight lang="bacon">' Define HTTP constants
Line 278 ⟶ 279:
WEND</syntaxhighlight>
==={{header|BBC BASIC}}===
{{works with|BBC BASIC for Windows}}
This explicitly supports multiple concurrent connections.
Line 1,481 ⟶ 1,482:
}</syntaxhighlight>
Using Perl's glue power, provide a
with visitor counter via netcat:
<syntaxhighlight lang="perl">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\
"Goodbye, World! (hello, visitor No. $vn!)\
}</syntaxhighlight>
Line 2,210 ⟶ 2,211:
=={{header|Wren}}==
{{libheader|SpiderWren}}
<syntaxhighlight lang="
Routes.GET("/") {
|