C++ HTTP protocol implementation