curl / Mailing Lists / curl-users / Single Mail


Re: Test for Return Code

From: Daniel Stenberg <>
Date: Sun, 11 Feb 2018 23:17:49 +0100 (CET)

On Sun, 11 Feb 2018, Jeremy Nicoll wrote:

> Curl probably issues a variety of return codes in different circumstances.
> They'll be listed somewhere with their numeric values and symbolic
> names.


> If you were using a language (eg C ?) which had been told to read the list
> of symbolic names, you could test for a returned code being equal to
> CURLE_OK (or any other symbolic value) and the C compiler would know that
> that meant 0 (or whatever).

The libcurl error codes are listed here:

Received on 2018-02-11