Patch PatchSolutionBUG40997 for *Network Functions Bug #40997
Patch version 2012-10-13 00:05 UTC
Return to Bug #40997 |
Download this patch
Patch Revisions:
Developer: jrsk2009@hotmail.com
Description:
------------
Solution for: I've passed a CURLOPT twice, and the script has hanged
Reproduce code:
---------------
$ch=curl_init('http://myip.ru/');
curl_setopt($ch, CURLOPT_TIMEOUT,3);
curl_setopt($ch, CURLOPT_NOBODY,1);
curl_setopt($ch, CURLOPT_NOBODY,0);
curl_setopt($ch, CURLOPT_HTTPGET,1); // << Add to troubleshoot
curl_exec($ch);
Expected result:
----------------
the page contents
Actual result:
--------------
the page contents
|