parrotcode: HTTP server | |
Contents | Examples |
examples/io/httpd.pir - HTTP server
% ./parrot examples/io/httpd.pir
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
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.
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 - <markus.amsler@oribi.org>
|