[FLOW3-general] timeout retrieve file via HTTP\Client\Browser
Bastian Waidelich
bastian at typo3.org
Mon Mar 25 16:04:49 CET 2013
Thomas Mammitzsch wrote:
Hi Thomas,
> i get timeout errors when trying to receive a file via
> HTTP\Client\Browser after 5 seconds. How to avoid that?
If you use CURL (the default request engine) you can set the timeout like:
$browser->getRequestEngine()->setOption(CURLOPT_TIMEOUT, 123);
> Maybe you have also a hint how to best save the file to disc.
what about
file_put_contents($filePathAndName, $browser->request($uri)->getContent());
?
--
Bastian Waidelich
--
Core Developer Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the FLOW3-general
mailing list