Skip to content

Instantly share code, notes, and snippets.

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