PEAR_REST::downloadHttp()
PEAR_REST::downloadHttp()
--
Efficiently Download a file through HTTP. Returns downloaded file as a
string in-memory This is best used for small files
Description
If an HTTP proxy has been configured (http_proxy PEAR_Config setting), the proxy will be used.
Parameter
- string $url
the URL to download
- FALSE|string|array $lastmodified
header values to check against for caching use FALSE to return the header values from this download
- FALSE|array $accept
Accept headers to send. This should be a list of MIME types like text/xml, frog/legs, etc.
- string $save_dir
directory to save file in
