Create a gist now

Instantly share code, notes, and snippets.

@s-tajima /test.php Secret
Created Feb 20, 2015

What would you like to do?
curl memory leak test
require_once 'HTTP/Request2.php';
function req()
$http = new HTTP_Request2("");
'follow_redirects' => true,
'max_redirects' => 5,
'timeout' => 10,
'ssl_verify_peer' => false,
'ssl_verify_host' => true,
$response = $http->send();
return $response->getBody();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment