HTTP_Download::send() – Send file


mixed HTTP_Download::send ( bool $autoSetContentDisposition = true )


Send the download.

Returns PEAR_Error if:

  • HTTP headers were already sent
  • HTTP Range was invalid


  • bool $autoSetContentDisposition = true - automatically sets the Content-Disposition to HTTP_DOWNLOAD_ATTACHMENT header if not already set

Return value

Returns TRUE on success, PEAR_Error on failure.


This function can not be called statically.

Guess content type of file (Previous) Static send (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.