34 #include <curl/curl.h>
35 #include <curl/easy.h>
42 CURL *init(
char *error_buffer);
44 bool configureProxy(CURL *curl,
const std::string &url);
46 long read_url(CURL *curl,
const std::string &url,
int fd, std::vector<std::string> *resp_hdrs,
47 const std::vector<std::string> *headers,
char error_buffer[]);
49 std::string http_status_to_string(
int status);