cURL / Mailing Lists / curl-library / Single Mail


RE: Query in curl library behavior when curl_easy_perform fails

From: Daniel Stenberg <>
Date: Fri, 10 Jun 2016 22:58:29 +0200 (CEST)

On Fri, 10 Jun 2016, Ramachandran, Agalya (Contractor) wrote:

> Thanks for clarification. I made some debug statement and found that only
> for the success case, call back function is been called and it returns data.
> In the case of failure (4xx) response call back function is never called.
> Is this the expected scenario? Please clarify me.

If there isn't any response body, the callback won't be called. The particular
response code doesn't matter at all.

List admin:
Received on 2016-06-10