35 #include <curl/curl.h>
36 #include <curl/easy.h>
50 CURL *
init(
char *error_buffer);
57 vector<string> *resp_hdrs,
58 const vector<string> *headers,
bool configureProxy(CURL *curl, const string &url)
Configure the proxy options for the passed curl object.
string http_status_to_string(int status)
This function translates an HTTP status code into an error messages.
long read_url(CURL *curl, const string &url, int fd, vector< string > *resp_hdrs, const vector< string > *request_headers, char error_buffer[])
Use libcurl to dereference a URL.
CURL * init(char *error_buffer)
Get's a new instance of CURL* and performs basic configuration of that instance.