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|BaConBASIC}}==
==={{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 suicide note
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\xdx0d\xax0a\xdx0d\xax0a",
"Goodbye, World! (hello, visitor No. $vn!)\xdx0d\xax0a";
}</syntaxhighlight>
 
Line 2,210 ⟶ 2,211:
=={{header|Wren}}==
{{libheader|SpiderWren}}
<syntaxhighlight lang="ecmascriptwren">import "web" for Routes, App
 
Routes.GET("/") {
9,476

edits