CURL_MULTI_SETOPT(3) 1 CURL_MULTI_SETOPT(3)
curl_multi_setopt - Set an option for the cURL multi handle
SYNOPSIS
bool curl_multi_setopt (resource $mh, int $option, mixed $value)
DESCRIPTION
Warning
This function is currently not documented; only its argument list is available.
PARAMETERS
o $mh
-
o $option
- One of the CURLMOPT_* constants.
o $value
- The value to be set on $option. $value should be an int for the following values of the $option parameter:
+---------------------+--------------------------------------+---+
| Option | | |
| | | |
| | Set $value to | |
| | | |
+---------------------+--------------------------------------+---+
| | | |
|CURLMOPT_PIPELINING | | |
| | | |
| | Pass 1 to enable or 0 to disable. | |
| | Enabling pipelining on a multi han- | |
| | dle will make it attempt to perform | |
| | HTTP Pipelining as far as possible | |
| | for transfers using this handle. | |
| | This means that if you add a second | |
| | request that can use an already | |
| | existing connection, the second | |
| | request will be "piped" on the same | |
| | connection. | |
| | | |
| | | |
|CURLMOPT_MAXCONNECTS | | |
| | | |
| | Pass a number that will be used as | |
| | the maximum amount of simultaneously | |
| | open connections that libcurl may | |
| | cache. Default is 10. When the cache | |
| | is full, curl closes the oldest one | |
| | in the cache to prevent the number | |
| | of open connections from increasing. | |
| | | |
+---------------------+--------------------------------------+---+
RETURN VALUES
Returns TRUE on success or FALSE on failure.
PHP Documentation Group CURL_MULTI_SETOPT(3)