SHTTPD is small, fast and easy to use web server written in C which supports CGI, SSL, Digest Authorization.
The unique feature of SHTTPD is it could be embed into an existing C/C++ application.
Embedded API is very clean and simple.
SHTTPD has small memory footprint.
Use it when other web servers like Apache are too heavy for your tasks.
It originated from:
http://shttpd.sourceforge.net
Chinese reference:
https://blog.csdn.net/dijkstar/article/details/81981851
- gcc-4.4.7
- rhel6.4
$ cd shttpd/src/
$ LIBS="-ldl -lpthread" CFLAGS="-DNO_SSL" make linux
$ cd shttpd/src/
$ LIBS="-ldl -lpthread" make linux
$ cd shttpd/src/
$ LIBS="-ldl -lpthread" make linuxso
example is an embeded http server in C.
$ cd shttpd/examples/
$ CFLAGS="-DNO_SSL" make linux
$ example
or:
$ example -ports 8080
Visual Studio 2015 Open:
./shttpd/msvc/shttpd.sln
Build All.