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
http://localhost:1234
which redirects to
http://localhost:1234/docs/html/index.html
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 - <markus.amsler@oribi.org>
|