30 #ifndef I_HTTPD_CURL_UTILS_H_
31 #define I_HTTPD_CURL_UTILS_H_
36 #include <curl/curl.h>
37 #include <curl/easy.h>
39 namespace httpd_catalog {
41 CURL *init(
char *error_buffer);
43 bool configureProxy(CURL *curl,
const std::string &url);
45 long read_url(CURL *curl,
const std::string &url,
int fd, std::vector<std::string> *resp_hdrs,
46 const std::vector<std::string> *headers,
char error_buffer[]);
48 std::string http_status_to_string(
int status);