PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
mixed HTTP_Download::setContentType (string [$content_type = 'application/x-octetstream'])
mixed HTTP_Download::setContentType
Set a reasonable content type for the download.
Examples:
application/pdf
application/zip
text/css
Returns PEAR_Error if $content_type doesn't seem to be valid.
string [$content_type = 'application/x-octetstream'] - a reasonable content type
Returns TRUE on success, PEAR_Error on failure.
This function can not be called statically.