curl_setopt() refactored

added correct values to curl_setopt() according to http://hu1.php.net/curl_setopt