HTTP_Download::setParams()

HTTP_Download::setParams() -- Set various parameters

Synopsis

mixed HTTP_Download::setParams (array $params)

Description

Set the parameters for the download.

You can use this method as an alternative to passing the parameters in the constructor or calling the setter of each parameter.

Parameter

"Content-Disposition" is not HTTP compliant, but most browsers follow this header, so it was borrowed from MIME standard.

It looks like this: "Content-Disposition: attachment; filename=example.tgz".

See

see HTTP_Download::setFile()

see HTTP_Download::setData()

see HTTP_Download::setResource()

see HTTP_Download::setGzip()

see HTTP_Download::setContentType()

see HTTP_Download::setLastModified()

see HTTP_Download::setContentDisposition()

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.