cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Query in curl library behavior when curl_easy_perform fails

From: Daniel Stenberg <daniel_at_haxx.se>
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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-06-10