mixed
HTTP_Download::setContentType
(
string
$content_type = 'application/x-octetstream'
)
ダウンロードのための適切な Content-type をセットします。
例:
application/pdf
application/zip
text/css
もし、$content_type
が有効でない場合、
PEAR_Error が返されます。
string
$content_type = 'application/x-octetstream'
- 適切な Content-type を指定します。
Returns TRUE on success, PEAR_Error on failure.
This function can not be called statically.