added curl_setopt