PHP: Hypertext Preprocessor (original) (raw)

curl_multi_setopt

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

curl_multi_setopt — Set a cURL multi option

Description

Sets an option on the given cURL multi handle.

Parameters

multi_handle

A cURL multi handle returned bycurl_multi_init().

option

One of the [CURLMOPT_*](curl.constants.php#constant.curlmopt-chunk-length-penalty-size) constants.

value

The value to be set on option. See the description of the**[CURLMOPT_*](curl.constants.php#constant.curlmopt-chunk-length-penalty-size)** constants for details on the type of values each constant expects.

Return Values

Returns [true](reserved.constants.php#constant.true) on success or [false](reserved.constants.php#constant.false) on failure.

Found A Problem?

ryosuke_i_628 at yahoo dot co dot jp

9 years ago

`If you want to enable both HTTP/1.1 pipelining and HTTP/2 multiplexing...

or

`