curl_pause

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

curl_pausePause and unpause a connection

Опис

curl_pause(CurlHandle $handle, int $flags): int

Pause or unpause a cURL session. A session can be paused while a transfer is in progress, in either the read, write or both directions, by calling this function from a callback registered with curl_setopt().

Параметри

ch

cURL-дескриптор, якого повертає curl_init().

flags

One of CURLPAUSE_* constants.

Значення, що повертаються

Returns an error code (CURLE_OK for no error).

Журнал змін

Версія Опис
8.0.0 handle тепер має бути примірником класу CurlHandle; раніше очікувався resource.