|parrotcode: HTTP server|
|Contents | Examples|
examples/io/httpd.imc - HTTP server
% ./parrot examples/io/httpd.imc
A very tiny HTTP-Server. It currently only understands the GET method. It's a nice way of testing pretty much all io functions.
By default it binds to localhost:1234, and serves the HTML Documentation in ./docs/html. Make sure you have built them with
% make html
After that you can browse the documentation with
which redirects to
Currently the URL isn't decoded, so the docs get served only partially.
Make sure that
PARROT_NET_DEVEL is set to 1 in io/io_private.h when parrot is built or the network layer won't exist.
make it work on W32/IE
Transcode the received string to ascci, in order to have access to an implemented 'index' op.
Markus Amsler - <email@example.com>