curl / Mailing Lists / curl-library / Single Mail


Re: libcurl smtp error list?

From: Gisle Vanem <>
Date: Fri, 29 Jun 2018 11:53:12 +0200

Deven wrote:

> This makes testing really difficult, unless you know the internals of libcurl. And if the return codes change across
> releases, then handling errors (to provide error feedback to the user) across different libcurl versions becomes
> impossible.

I cannot help you with this problem. But if
you want a full list of 'CURLE_x' and 'CURLOPT_x' values
a priori or within your program, I've cooked up this
GNU-makefile that generates such a list:

Tested on Windows using MinGW and MSVC only. I'd
be interested to hear if this mk-opt-err-list.mak
works on non-Windows too.

Received on 2018-06-29