API Issue after

Those ini_set calls are for PHP configuration. I’m speaking to checking cURL object directly and taking action on that. Docs on the PHP site: http://php.net/manual/en/function.curl-error.php