equal
deleted
inserted
replaced
111 }); |
111 }); |
112 |
112 |
113 // set the error buffer |
113 // set the error buffer |
114 curl_easy_setopt(impl->curl, CURLOPT_ERRORBUFFER, impl->curlErrorBuffer); |
114 curl_easy_setopt(impl->curl, CURLOPT_ERRORBUFFER, impl->curlErrorBuffer); |
115 |
115 |
|
116 // enable HTTP and HTTPS only |
|
117 curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); |
|
118 |
116 return new HTTPClient(impl); |
119 return new HTTPClient(impl); |
117 } |
120 } |
118 |
121 |
119 HTTPClient::~HTTPClient() { |
122 HTTPClient::~HTTPClient() { |
120 curl_easy_cleanup(impl->curl); |
123 curl_easy_cleanup(impl->curl); |