cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl: errors string to users

From: Daniel Stenberg <>
Date: Mon, 24 Feb 2003 23:23:50 +0100 (CET)

On Mon, 24 Feb 2003, Juan F. Codagnone wrote:

(Your mail had malformatted MIME headers)

> hi. i was looking at libcurl's functions, and i didn't find anything to
> convert CURLcode to a nice string to print to the user.

If you use CURLOPT_ERRORBUFFER, you'll get a human readable error description
of errors that might occur.

> i attach you a script that extracts the comments from curl/curl.h and
> creates the function curl_strerror; and an example of the output
> (curlerr.c).

I honestly can't see the point in adding such a function.

But of course, I'm listening to what others have to say about it.

 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2003-02-24