如果我想在php libcurl会话中重复一组参数,该怎么用

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?

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() does seem somewhat cleaner as opposed to using a bunch of curl_setopt()