Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does cURL use zlib?

It is possible to compile Libcurl with OpenSSL, SSH2 and zlib support. I found out that OpenSSL is used as an alternative for SSL traffic as it's described on the FAQ, and I can deduce what SSH2 does, but what exactly is zlib used for?

like image 638
Marc.2377 Avatar asked Oct 07 '14 19:10

Marc.2377


1 Answers

HTTP responses can be compressed with gzip. The zlib library is used to decompress these responses.

like image 149
Overv Avatar answered Oct 17 '22 16:10

Overv