fix the bug of curl_setopt

curl_setopt will  modify the type of param
the bugs is here: https://bugs.php.net/bug.php?id=67704
This is the easy way out, but I would recommend against copying the whole array in case one value is not a string; instead, separate the value as and when required.