位置: 编程技术 - 正文

PHP:curl_share_setopt()的用法_cURL函数

编辑:rootadmin
curl_share_setopt

推荐整理分享PHP:curl_share_setopt()的用法_cURL函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.5.0)

curl_share_setopt — Set an option for a cURL share handle.

说明 bool curl_share_setopt ( resource $sh , int $option , string $value )

Sets an option on the given cURL share handle.

参数sh

A cURL share handle returned by curl_share_init().

option PHP:curl_share_setopt()的用法_cURL函数

Option Description CURLSHOPT_SHARE Specifies a type of data that should be shared. CURLSHOPT_UNSHARE Specifies a type of data that will be no longer shared.

value

Value Description CURL_LOCK_DATA_COOKIE Shares cookie data. CURL_LOCK_DATA_DNS Shares DNS cache. Note that when you use cURL multi handles, all handles added to the same multi handle will share DNS cache by default. CURL_LOCK_DATA_SSL_SESSION Shares SSL session IDs, reducing the time spent on the SSL handshake when reconnecting to the same server. Note that SSL session IDs are reused withing the same handle by default.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

范例

Example #1 curl_share_setopt() example

This example will create a cURL share handle, add two cURL handles to it, and then run them with cookie data sharing.

<?php//CreatecURLsharehandleandsetittosharecookiedata$sh=curl_share_init();curl_share_setopt($sh,CURLSHOPT_SHARE,CURL_LOCK_DATA_COOKIE);//InitializethefirstcURLhandleandassignthesharehandletoit$ch1=curl_init("

PHP:curl_share_init()的用法_cURL函数 curl_share_init(PHP5=5.5.0)curl_share_initInitializeacURLsharehandle说明resourcecurl_share_init(void)AllowstosharedatabetweencURLhandles.参数此函数没有参数。返回值Returnsresourceoftypec

PHP:curl_setopt_array()的用法_cURL函数 curl_setopt_array(PHP5=5.1.3)curl_setopt_array为cURL传输会话批量设置选项说明boolcurl_setopt_array(resource$ch,array$options)为cURL传输会话批量设置选项。这个函数对于需

PHP:curl_share_close()的用法_cURL函数 curl_share_close(PHP5=5.5.0)curl_share_closeCloseacURLsharehandle说明voidcurl_share_close(resource$sh)ClosesacURLsharehandleandfreesallresources.参数shAcURLsharehandlereturnedbycurl_share_init()

标签: PHP:curl_share_setopt()的用法_cURL函数

本文链接地址:https://www.jiuchutong.com/biancheng/280552.html 转载请保留说明!

上一篇:PHP:curl_strerror()的用法_cURL函数

下一篇:PHP:curl_share_init()的用法_cURL函数

  • 偷税与漏税的界限是
  • 收购发票加计扣除
  • 网银转账往来款
  • 管理费里面可以取现金吗
  • 红字发票冲红需要收回原发票吗
  • 生产企业出售空调设备
  • 印花税漏报,税务局怎么罚款
  • 预付款对应的会计科目
  • 固定资产报废后怎么处理
  • 住房公积金如何在手机上提取
  • 小微企业季度缴税一百万退税吗
  • 无运输工具承运业务按何税目缴纳增值税
  • 中国工商银行社保查询
  • 福利企业的增值税是多少
  • 公司净资产怎么算的
  • 转账户有误退回会计处理
  • 暂估应付款借方
  • 消费税税目是否含税
  • 合营企业之间为什么不构成关联方
  • 债权性投资和权益性投资的区别
  • 闲置资金购买理财产品
  • 发行股票的承销商佣金分录
  • 资本的不同形态
  • 百货商场会计账怎么做
  • 酒店采购布草如何入账
  • 出口退税退回的税款怎么记账
  • 工程施工暂估成本的账务处理流程
  • 政府会计公共基础设施的概念和内容
  • 密歇根湖怎么读
  • 菲律宾薄荷岛疫情最新消息
  • zendstudio怎么创建php项目
  • 注销小规模公司需要什么材料
  • phpseessid
  • 一次性扣除固定资产汇算清缴
  • yolov5s
  • erp面试题目100及最佳答案
  • 图像分割csdn
  • setenforce 0命令
  • node_sass
  • 注册资本与注册资金、出资额的区别
  • 优秀员工奖励现金是工资还是福利
  • 个体户按季申报吗
  • 更正申报失败,维持原申报?
  • 微店企业店铺和个人店铺的区别
  • PostgreSQL教程(十):性能提升技巧
  • 贷款计入什么科目
  • 差旅费报销过程中会计和出纳分别做什么
  • 预缴企业所得税计算公式
  • 一个人可以做多个担保人吗
  • 什么是试算平衡表,编制试算平衡表时应注意哪些方面
  • 转让古董收入
  • 工会的会费收入是什么
  • 工会会费收入计入会计科目
  • 公司银行账号注销需要法人到场吗
  • 补交上年度的企业所得税税款计入什么科目
  • 收到了对方的作业怎么办
  • 领购发票的方式有哪些
  • 固定资产明细账怎么填
  • xp 指定的域不存在,或无法联系
  • 开机时显示
  • win10windows更新
  • win10系统如何查看激活状态
  • 电脑预读文件
  • win8系统搜索在哪里
  • win8 恢复
  • mac adobe flash player一直提示更新
  • hdaudpropshortcut.exe是什么进程 作用是什么 hdaudpropshortcut进程查询
  • win7j
  • linux服务器安全防护方案
  • win10 rs4
  • nodejs操作sqlserver
  • sql怎么设置自增列
  • bat判断变量的值
  • python将字典转换成字符串
  • button button button
  • 深入理解javascript特性
  • 国税局税务大厅电话
  • 国家税务局天津市税务总局官网
  • 净化水服务税务分类
  • 排污费属于什么费用科目
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设