how to debug server error in curl request code example Example: how to debug the curl request curl_setopt($curlhandle, CURLOPT_VERBOSE, true);