26 #ifndef _httpconnect_h
27 #define _httpconnect_h
32 #include <curl/curl.h>
33 #include <curl/easy.h>
39 #ifndef _object_type_h
47 #ifndef http_response_h
83 char d_error_buffer[CURL_ERROR_SIZE];
85 bool d_accept_deflate;
93 vector<string> d_request_headers;
95 int d_dap_client_protocol_major;
96 int d_dap_client_protocol_minor;
99 long read_url(
const string &url, FILE *stream, vector<string> *resp_hdrs,
100 const vector<string> *headers = 0);
105 bool url_uses_proxy_for(
const string &url)
throw();
106 bool url_uses_no_proxy_for(
const string &url)
throw();
108 void extract_auth_info(
string &url);
122 throw InternalErr(__FILE__, __LINE__,
"Unimplemented method");
125 throw InternalErr(__FILE__, __LINE__,
"Unimplemented method");
128 throw InternalErr(__FILE__, __LINE__,
"Unimplemented assignment");
149 d_cookie_jar = cookie_jar;
174 #endif // _httpconnect_h