curl_copy_handle
PHP 5, PHP 7, PHP 8
curl_copy_handle - Copy a cURL handle along with all of its preferences
Manual
curl_copy_handle(
CurlHandle$handle ): CurlHandle|false
Copies a cURL handle keeping the same preferences.
Parameters
- handle
A cURL handle returned by curl_init.
Return Values
Returns a new cURL handle, or false on failure.
Changelog
Version | Description |
8.0.0 | handle expects a CurlHandle instance now; previously, a resource was expected. |
8.0.0 | On success, this function returns a CurlHandle instance now; previously, a resource was returned. |