HTTP_Download::setGzip() – Whether to gzip the download on the fly or not. (requires ext/zlib)


mixed HTTP_Download::setGzip ( bool $gzip = false )


Define whether you want to send the download gzipped or not.

Returns a PEAR_Error if ext/zlib is not available.


  • bool $gzip = false - whether to gzip the download on the fly

Return value

Returns TRUE on success, PEAR_Error on failure.


This function can not be called statically.

Set resource for download (Previous) Whether to allow caching of the download on the clients side. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.