|parrotcode: HTTP server|
|Contents | Examples|
examples/io/httpd.imc - HTTP server
% ./parrot examples/io/httpd.imc
A very tiny HTTP-Server. Currently only understands GET method. It's a nice way of testing pretty all io funtions.
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
Be sure to set
PARROT_NET_DEVEL to 1 in io/io_private.h and rebuild Parrot or the network layer won't exist.
make it work on W32/IE
Transcode the received to ascci, in order to have access to an implemented 'index' op.
Markus Amsler - <firstname.lastname@example.org>