using curl_setopt insted of curl_setopt_array