roxen.lists.pike.general

Subject Author Date
Re: Suggestions for a small menu-driven system? Lance Dillon <riffraff169[at]yahoo[dot]com> 20-08-2009
I wrote a small web server using Protocols.HTTP.Server.  It also supports
embedded pike code using a <?pike ... ?> syntax, also pike scripts as files
ending in .pk.  I was using it for a project that is currently stalled.  I could
make it available if anybody wants it.



----- Original Message ----
From: Arne Goedeke <<el[at]laramies.com>>
To: Stephen R. van den Berg <<srb[at]cuci.nl>>; <pike[at]roxen.com>
Sent: Wednesday, August 19, 2009 5:33:40 PM
Subject: Re: Suggestions for a small menu-driven system?

I have a 80 lines simple http server which i used to test some stuff i
was doing with persistent tcp connections using js. There is some code
in there which is explicilty for that, but i used it also to serve some
static files. It should serve as a good example.

It even features some asynchronous handling of http requests. And beware
the Stdio.read_file() part as it would allow for reading arbitrary files
on your system (if readable), but as i said, i used this for testing.

best

arne

Stephen R. van den Berg wrote:
> Martin Nilsson (Opera Mini - AFK!) @ Pike (-) importm?te f?r mailinglistan
wrote:
>> And that that webserver is good enough to be used for several commercial
>> products at Opera.
> 
> Any snippets of sample code you (or anyone else) can share for a minimal
> server serving some (e.g. html and gifs) files from the filesystem?