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

Tested on both Mac and Linux.
Fixed.