HH\curl_init_pooled
Initialize a cURL session using a pooled curl handle
namespace HH;
function curl_init_pooled(
string $pool_name,
string $url = NULL,
): mixed;
When this resource is garbage collected, the curl handle will be saved for reuse later. Pooled curl handles persist between requests.
Parameters
string $pool_name
string $url = NULL
- If provided, the CURLOPT_URL option will be set to its value. You can manually set this using the curl_setopt() function. The file protocol is disabled by cURL if open_basedir is set.
Returns
resource
- - Returns a cURL handle on success, FALSE on errors.