5 ms·
Also, if you want to include #include <microhttpd.h> you can write a useful, safe (well tested), http server in a similar number of lines.
by mianos 5y ago
Also, if you want to include #include <microhttpd.h> you can write a useful, safe (well tested), http server in a similar number of lines.
- rijoja 5y agoWhy not #include<stdlib.h> and just run system("apache2")
- Koshkin 5y agoTried it, didn’t work. (Now I want to try system(argv[0]) for some reason…)
- secondcoming 5y agoThat would defeat the whole point of the post! But microhttpd is fine is you want a minimal server; its way of handling POST bodies is weird though.