26 #ifndef _httpconnect_h
27 #define _httpconnect_h
32 #include <curl/curl.h>
35 #include <curl/easy.h>
41 #ifndef _object_type_h
49 #ifndef http_response_h
85 char d_error_buffer[CURL_ERROR_SIZE];
87 bool d_accept_deflate;
95 vector<string> d_request_headers;
97 int d_dap_client_protocol_major;
98 int d_dap_client_protocol_minor;
101 long read_url(
const string &url, FILE *stream, vector<string> *resp_hdrs,
102 const vector<string> *headers = 0);
107 bool url_uses_proxy_for(
const string &url)
throw();
108 bool url_uses_no_proxy_for(
const string &url)
throw();
110 void extract_auth_info(
string &url);
124 throw InternalErr(__FILE__, __LINE__,
"Unimplemented method");
127 throw InternalErr(__FILE__, __LINE__,
"Unimplemented method");
130 throw InternalErr(__FILE__, __LINE__,
"Unimplemented assignment");
151 d_cookie_jar = cookie_jar;
176 #endif // _httpconnect_h
bool is_cache_enabled() const
void set_cache_enabled(bool mode)
void set_credentials(const string &u, const string &p)
void set_cookie_jar(const string &cookie_jar)
void set_cache_enabled(bool enabled)
HTTPResponse * fetch_url(const string &url)
A class for software fault reporting.
HTTPConnect(const HTTPConnect &)
friend size_t save_raw_http_header(void *ptr, size_t size, size_t nmemb, void *http_connect)
void set_accept_deflate(bool defalte)
void set_xdap_protocol(int major, int minor)
friend class HTTPConnectTest
HTTPConnect & operator=(const HTTPConnect &)