libcurl 内置压缩支持与否

libcurl inbuilt compression support or not

我找到了一个答案,告诉我 libcurl 不支持压缩。

libcurl (linux, C) - Is there a built-in way to POST/PUT a gzipped request?

但是,在其他地方,我也发现了这个:

Is there any compression available in libcurl

我的问题是,我是否仍然必须自己压缩字符串然后发送它们,还是不需要使用 libcurl?

是的,如果您发送数据,您必须在发送前自行压缩。在例如 HTTP(1.1 和 HTTP/2)中不支持这样做 "automatically"。