HTTP & CGI Server Proof of Concept
A basic HTTP & CGI implementation using Perl 6 and IO::Socket::Async to allow multithreading.
mini-http-cgi-server is not maintained and developed anymore; please use Wap6 instead.
- 200, 400, 404 and 413 HTTP status response codes.
- GET and POST HTTP methods.
- Binary data socket processing.
- Encoding to UTF-8 by default.
- Pseudo-CGI scripts via Perl6 Modules (lib/CGI).
- Live logs via stdout.
- Cookies.
- File uploading.
- Client information beyond HTTP headers and POST payload.
- Security.
- URI;
- URI::Escape;
-
perl6 mini-http-cgi-server.pl6
-
run web-client in http://localhost:3000
-
enjoy CGI and AJAX!
-
Stress the server with client.pl6
NOTE: don't use in production environments!