位置: 编程技术 - 正文
推荐整理分享PHP:curl_multi_setopt()的用法_cURL函数,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 5 >= 5.5.0)
curl_multi_setopt — Set an option for the cURL multi handle
说明 bool curl_multi_setopt ( resource $mh , int $option , mixed $value )Warning
本函数还未编写文档,仅有参数列表。
参数mhoption
One of the CURLMOPT_* constants.
valueThe 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 handle 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 rather than being executed in parallel. CURLMOPT_MAXCONNECTS Pass a number that will be used as the maximum amount of simultaneously open connections that libcurl may cache. Default is . When the cache is full, curl closes the oldest one in the cache to prevent the number of open connections from increasing.
返回值成功时返回 TRUE, 或者在失败时返回 FALSE。
PHP:curl_multi_select()的用法_cURL函数 curl_multi_select(PHP5)curl_multi_select等待所有cURL批处理中的活动连接说明intcurl_multi_select(resource$mh[,float$timeout=1.0])阻塞直到cURL批处理连接中有活动连接。参数
PHP:curl_multi_remove_handle()的用法_cURL函数 curl_multi_remove_handle(PHP5)curl_multi_remove_handle移除curl批处理句柄资源中的某个句柄资源说明intcurl_multi_remove_handle(resource$mh,resource$ch)从给定的批处理句柄mh中
PHP:curl_multi_init()的用法_cURL函数 curl_multi_init(PHP5)curl_multi_init返回一个新cURL批处理句柄说明resourcecurl_multi_init(void)允许并行地处理批处理cURL句柄。参数此函数没有参数。返回值成功时返
标签: PHP:curl_multi_setopt()的用法_cURL函数
本文链接地址:https://www.jiuchutong.com/biancheng/280559.html 转载请保留说明!上一篇:PHP:curl_pause()的用法_cURL函数
下一篇:PHP:curl_multi_select()的用法_cURL函数
友情链接: 武汉网站建设