Req #53392 [Opn]: curl_getcontent
Edit report at http://bugs.php.net/bug.php?id=53392&edit=1
ID: 53392
Updated by: cataphract@php.net
Reported by: martin dot k at atlas dot cz
Summary: curl_getcontent
Status: Open
Type: Feature/Change Request
Package: cURL related
PHP Version: 5.3.3
Block user comment: N
Private report: N
New Comment:
Well, you can use a write function to save the partial content.
Previous Comments:
------------------------------------------------------------------------
[2010-11-23 22:56:15] martin dot k at atlas dot cz
Description:
------------
Please add function curl_getcontent similar to curl_multi_getcontent.
Why?
When I call function curl_exec with set CURLOPT_TIMEOUT and timeout
happend. It will return false and I have bad luck :-(
However when I call function curl_multi_exec also with set
CURLOPT_TIMEOUT and timeout happend. It will return false as well, but
then I can call function curl_multi_getcontent and get partial content
of downloaded file :-)
Bottom line,
there is no simple way how to get content (including header & body) if
function curl_exec ends up with fail. But if function curl_multi_exec
will fail, I can call function curl_multi_getcontent and try get a part
of content at least. Which can be useful!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53392&edit=1
Thread (4 messages)