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

curl_multi_setopt

PHP function Edit on GitHub ✎

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

Set a cURL multi option

Description

curl_multi_setopt(CurlMultiHandle $multi_handle, int $option, mixed $value): bool

Sets an option on the given cURL multi handle.

Parameters

option

One of the CURLMOPT_* constants.

value

The value to be set on option. See the description of the CURLMOPT_* constants for details on the type of values each constant expects.

Return Values

Success

Changelog

VersionDescription
8.2.0Introduced CURLMOPT_MAX_CONCURRENT_STREAMS.
7.1.0Introduced CURLMOPT_PUSHFUNCTION.
7.0.7Introduced CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, CURLMOPT_MAX_HOST_CONNECTIONS, CURLMOPT_MAX_PIPELINE_LENGTH and CURLMOPT_MAX_TOTAL_CONNECTIONS.

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