src/HTTPClient.cpp
branchv_0
changeset 13 18f4f7e93c48
parent 12 2f2d64333867
child 14 e41abdd36ff1
equal deleted inserted replaced
12:2f2d64333867 13:18f4f7e93c48
   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
   116 	// enable HTTP and HTTPS only
   117 	curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
   117 	curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
   118 
   118 
       
   119 	// disable protocol guesswork
       
   120 	curl_easy_setopt(impl->curl, CURLOPT_DEFAULT_PROTOCOL, "no-default-protocol-specify-http-or-https-explicitly-in-url");
       
   121 
   119 	return new HTTPClient(impl);
   122 	return new HTTPClient(impl);
   120 }
   123 }
   121 
   124 
   122 HTTPClient::~HTTPClient() {
   125 HTTPClient::~HTTPClient() {
   123 	curl_easy_cleanup(impl->curl);
   126 	curl_easy_cleanup(impl->curl);