Replaced CurlBuffer with std::vector<char>.
Moved the incredibly long return type to a separate line.