位置: 编程技术 - 正文

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函数

  • 纳税期是多久
  • 机动车统一发票税率多少
  • 税务结清后多少时间内工商需要注销
  • 索赔怎么开票
  • 附加税费申报表出不来数据
  • 担保机构免征增值税吗
  • 有两种税率的如何填申报表
  • 固定资产折旧财务
  • 联营返点收入账务处理
  • 捐赠利得会计分录
  • 购买的车位是否有产权证
  • 应付工资可以挂账多长时间
  • 普通发票电子发票没有章
  • 开进来的发票冲红怎么处理?
  • 金税四期什么时候结束
  • 个税系统工资少报了怎么办
  • 扣缴上月税费会计分录
  • 电商平台收取的运输费记收入吗
  • 存货质押融资的银行
  • 应收票据盘点表是出纳填吗
  • 个体工商户的专票可以抵扣吗
  • 企业新增股东
  • 应付职工薪酬年末需要结转吗
  • mac怎么开机
  • 华为手机如何用有线耳机
  • 公司之间借款怎么操作
  • 什么叫交易类型
  • php类和对象写法
  • 重装系统前需要注意什么
  • mac系统中文输入法切换
  • 负债的概念及流动负债的确认条件
  • php i
  • 看望员工生病的家属支付现金如何入账
  • 技术服务费可以计入成本吗
  • php读取文件
  • ChatGPT-Next-Web:Vercel 和 Cloudflare 的快速部署
  • 西安微信公众号开发
  • 俄勒冈zip
  • 聊聊vue3的defineProps、defineEmits、defineExpose
  • html导航栏边框
  • java使用循环结构输出九九乘法表
  • Sublime Text 4 (Build 4143) 注册方法STEP BY STEP
  • 企业的安全费用怎么弄
  • convert convert
  • 预付采购材料款60000元
  • 一般纳税人申报表电子版
  • 利润计算公式是什么折扣
  • 员工补助每月申报怎么填
  • 公司的备用金属怎么处理
  • 民办非盈利组织注销了在哪登报
  • 上市公司回购股票多久可出售
  • 质量赔偿金
  • 对于产品开发阶段的评价
  • 小规模以前年度城建税未计提
  • 新会计准则印花税需要计提吗
  • 建筑业清包工合同范本
  • 对公转账个人垫付怎么写
  • 冲销管理费用如何做分录
  • 当月没认证的发票当月不用进行账务处理吗
  • 税后扣款怎么做账
  • 商业承兑汇票贴现流程
  • 建筑业外包工程包括哪些
  • 固定资产折旧如何计提
  • 企业代扣个人社保最新会计处理
  • 固定资产卡片录入日期怎么改
  • 商品降价如何进行投诉
  • Windows Server 2003几个实用小技巧
  • Windows PC用iCloud多设备共享数据图文教程
  • windows server 2008 r2 iis
  • linux命令大全详解
  • node.js报错
  • 对于javascript理解
  • js中document.write
  • android studio unity3d
  • unity3d课程
  • 用python抓取网页数据的代码
  • context和getApplicationContext()介绍
  • python 在线运行环境
  • 税务局大厅咨询台
  • 在烟台如何发布招聘信息
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设