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

Tested on both Mac and Linux.
add detailed comment about return value (when exactly it's false)