curl-library
Re: Detail error information on error
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 21 Jan 2014 23:33:08 +0100 (CET)
Date: Tue, 21 Jan 2014 23:33:08 +0100 (CET)
On Tue, 21 Jan 2014, rkevinburton_at_charter.net 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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-01-21