php8.5
Home/ Manual/ curl / functions/ curl_pause

curl_pause

PHP function Edit on GitHub ✎

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

Pause and unpause a connection

Description

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().

Parameters

flags

One of CURLPAUSE_* constants.

Return Values

Returns an error code (CURLE_OK for no error).

Changelog

VersionDescription

Source: reference/curl/functions/curl-pause.xml · from the official PHP manual (php/doc-en)