cURL / Mailing Lists / curl-library / Single Mail


Re: Detail error information on error

From: Kevin Burton <>
Date: Tue, 21 Jan 2014 17:46:07 -0600

I don't know what version of lib curl PHP uses. I am using PHP 5.5. I included a snippet of PHP code to show how I was getting the results. I am just faced with the problem that curl_exec returns false on error and I am not sure how to get the response body contents that I can see are available with Fiddler.
I know there is a PHP layer in between me and libcurl. I don't know how or what to call to give me the results that I would like. Maybe like you indicated there are some options that would cause the body to be "visible" on error?

> On Jan 21, 2014, at 5:00 PM, Daniel Stenberg <> wrote:
>> On Tue, 21 Jan 2014, wrote:
>> It has to be different. When it is successful I read the response from the result of curl_exec like:
> First you don't use libcurl directly you use a layer in between that may cause something to differ. But more importantly, you can alter libcurl's behavior by setting options and in particular I think of CURLOPT_FAILONERROR.
> As you're not telling us any details: no code, no libcurl versions, no platform info, nothing - there could probably be a bazillion other reasons for what you see.
> --
> /
> -------------------------------------------------------------------
> List admin:
> Etiquette:

List admin:
Received on 2014-01-22