libcurl - 如何使用curl_easy设置--compressedcurl命令选项?

标签 libcurl

当我运行 curl --help 时,我看到以下选项可用:

--compressed Request compressed response (using deflate or gzip)

但是,当我访问documentation时在curl_easy的setopt命令中,我没有看到传递此压缩标志的选项。

如何使用 curl_easy_setopt 设置 --compressed

最佳答案

--compressed 相当于 CURLOPT_ACCEPT_ENCODING

关于libcurl - 如何使用curl_easy设置--compressedcurl命令选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58599968/

相关文章:

version - libcurl 库类图 11.04

c - libcURL 混淆后

curl: (48) 一个未知的选项被传递给 libcurl

c++ - curl 发布空对象

c++ - 如何从 libcurl 的 C++ 获取 NTLM/Kerberos 的 Windows 凭据?

ssl - 为什么一个 curl 可以做 https 而另一个不能

php - 使用 libcurl C++ 将响应数据存储到发布的变量中

C++ 如何在 Visual Studio 2010 中链接 LibCurl

bash - 使用 cURL 登录

c - 在 C 中使用 libcurl 按线程读取一个文件