Ask server to gzip data.
This commit is contained in:
parent
33866b3d6b
commit
6e35c880a4
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ namespace duck {
|
||||||
easy.add(curl_pair<CURLoption, std::string>(CURLOPT_USERAGENT, parUserAgent));
|
easy.add(curl_pair<CURLoption, std::string>(CURLOPT_USERAGENT, parUserAgent));
|
||||||
easy.add(curl_pair<CURLoption, long>(CURLOPT_FOLLOWLOCATION, 1L));
|
easy.add(curl_pair<CURLoption, long>(CURLOPT_FOLLOWLOCATION, 1L));
|
||||||
|
|
||||||
|
easy.add(curl_pair<CURLoption, std::string>(CURLOPT_ACCEPT_ENCODING, "gzip"));
|
||||||
|
easy.add(curl_pair<CURLoption, long>(CURLOPT_HTTP_CONTENT_DECODING, 1L));
|
||||||
|
|
||||||
//try {
|
//try {
|
||||||
easy.perform();
|
easy.perform();
|
||||||
//}
|
//}
|
||||||
|
|
Loading…
Add table
Reference in a new issue