/*
- * Copyright (C) 2011-2012 jeanfi@gmail.com
+ * Copyright (C) 2011-2014 jeanfi@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, cbk_curl);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, content);
curl_easy_setopt(curl, CURLOPT_USERAGENT, "ppastats/0.0");
+#ifdef CURLOPT_TRANSFER_ENCODING
+ /* added since Curl 7.21.7 */
curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1);
+#endif
if (curl_easy_perform(curl) == CURLE_OK) {
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &code);