如果我想在php libcurl会话中重复参数集该怎么用 [英] What to use if i want to repeat set of parameters in php libcurl session
本文介绍了如果我想在php libcurl会话中重复参数集该怎么用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在curl中做多个事情,显然每个步骤中的某些参数都将相同...我应该使用卷曲副本句柄或 curl setopt数组?据我了解,两者都做同一件事...还是我出了点问题?
I'm trying to do multiple things in curl and obviously some parameters in each step will be the same... should i use curl copy handle or curl setopt array? As far as i understand both do the same thing... or i'm getting something wrong?
推荐答案
看不到使用其中一个的任何好处。我可以看到的唯一区别是 curl_setopt_array()仅在PHP 5.1.3和更高版本中可用。
Can't see any benefit to using one or the other. The only difference I can see is curl_setopt_array() is only available as of php 5.1.3.
curl_setopt_array()似乎比使用一堆 curl_setopt()
这篇关于如果我想在php libcurl会话中重复参数集该怎么用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文