src/HTTPClient.cpp
branchv_0
changeset 24 4f96098f7c57
parent 16 60688cf1f165
child 25 dbeae485a3fd
equal deleted inserted replaced
23:33f8162a4971 24:4f96098f7c57
   118 	curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
   118 	curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
   119 
   119 
   120 	// disable protocol guesswork
   120 	// disable protocol guesswork
   121 	curl_easy_setopt(impl->curl, CURLOPT_DEFAULT_PROTOCOL, "no-default-protocol-specify-http-or-https-explicitly-in-url");
   121 	curl_easy_setopt(impl->curl, CURLOPT_DEFAULT_PROTOCOL, "no-default-protocol-specify-http-or-https-explicitly-in-url");
   122 
   122 
       
   123 	// TODO: automatic decompression of response bodies
       
   124 	// curl_easy_setopt(impl->curl, CURLOPT_ACCEPT_ENCODING, "");
       
   125 	// curl_easy_setopt(impl->curl, CURLOPT_HTTP_CONTENT_DECODING, 1L);
       
   126 	// curl_easy_setopt(impl->curl, CURLOPT_HTTP_TRANSFER_DECODING, 1L);
       
   127 
   123 	return new HTTPClient(impl);
   128 	return new HTTPClient(impl);
   124 }
   129 }
   125 
   130 
   126 HTTPClient::~HTTPClient() {
   131 HTTPClient::~HTTPClient() {
   127 	curl_easy_cleanup(impl->curl);
   132 	curl_easy_cleanup(impl->curl);