Req #53392 [Opn]: curl_getcontent

From: Date: Sat, 27 Nov 2010 20:16:49 +0000
Subject: Req #53392 [Opn]: curl_getcontent
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156525@lists.php.net to get a copy of this message
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)

« previous php.bugs (#156525) next »