PHP: curl_multi_setopt - Manual
(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 by curl_multi_init().
option-
One of the
CURLMOPT_*constants. value-
The value to be set on
option. See the description of theCURLMOPT_*constants for details on the type of values each constant expects.
Found A Problem?
ryosuke_i_628 at yahoo dot co dot jp ¶
10 years ago
If you want to enable both HTTP/1.1 pipelining and HTTP/2 multiplexing...
<?php
curl_multi_setopt($mh, CURLMOPT_PIPELINING, 3);
?>
or
<?php
curl_multi_setopt($mh, CURLMOPT_PIPELINING, CURLPIPE_HTTP1 | CURLPIPE_MULTIPLEX);
?>