src/HTTPClient.cpp
branchv_0
changeset 12 2f2d64333867
parent 11 6b913e82f52a
child 13 18f4f7e93c48
equal deleted inserted replaced
11:6b913e82f52a 12:2f2d64333867
   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);