77 char d_error_buffer[CURL_ERROR_SIZE];
78 std::string d_content_type;
80 bool d_accept_deflate;
88 vector<string> d_request_headers;
90 int d_dap_client_protocol_major;
91 int d_dap_client_protocol_minor;
93 bool d_use_cpp_streams;
96 long read_url(
const string &url, FILE *stream, vector<string> *resp_hdrs,
const vector<string> *headers = 0);
101 bool url_uses_proxy_for(
const string &url);
102 bool url_uses_no_proxy_for(
const string &url)
throw();
104 void extract_auth_info(
string &url);
106 friend size_t save_raw_http_header(
void *ptr,
size_t size,
size_t nmemb,
void *http_connect);
107 friend class HTTPConnectTest;
108 friend class ParseHeader;
117 HTTPConnect(
const HTTPConnect &);
118 HTTPConnect &operator=(
const HTTPConnect &);
122 HTTPConnect(
RCReader *rcr,
bool use_cpp =
false);
124 virtual ~HTTPConnect();
130 bool use_cpp_streams()
const {
return d_use_cpp_streams; }
131 void set_use_cpp_streams(
bool use_cpp_streams) { d_use_cpp_streams = use_cpp_streams; }
148 d_http_cache->set_cache_enabled(enabled);
152 bool is_cache_enabled() {
return (d_http_cache) ? d_http_cache->is_cache_enabled() :
false; }