cURL / Mailing Lists / curl-library / Single Mail


Re: Detail error information on error

From: Daniel Stenberg <>
Date: Tue, 21 Jan 2014 23:33:08 +0100 (CET)

On Tue, 21 Jan 2014, wrote:

> I am using CURL that comes with PHP. I know about curl_error. I am finding
> that when I get a 500 error from a particular server not only do I get a 500
> error but the server puts detail information about the error in the body of
> the error response. How do I get at the error data using curl in PHP?

The HTTP response body is received the exact same way even if the status code
is 200 or 500 as in your case. You get the same data the same way.

List admin:
Received on 2014-01-21