libcurl inbuilt compression support or not

116 views Asked by At

I found an answer which told me that libcurl doesn't support compression.

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

But, somewhere else, I also found this:

Is there any compression available in libcurl

My question is, do I still have to compress strings on my own and then send them, or is that not necessary using libcurl?

1

There are 1 answers

0
Daniel Stenberg On BEST ANSWER

Yes, if you send data you must compress that yourself before sending. There is no support for doing that "automatically" in for example HTTP (neither 1.1 nor HTTP/2).