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

Tested on both Mac and Linux.
RETURN VALUES
     Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

throw SocketCreateException() ?