Added curl_easy_setopt error checking