curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Test for Return Code

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

Yeps: https://curl.haxx.se/docs/manpage.html#EXIT

> 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:
https://curl.haxx.se/libcurl/c/libcurl-errors.html

-- 
  / daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-02-11