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