C++ HTTP server code with curl-based test.

Tested on both Mac and Linux.
take into an account Content-Length