cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Error Message

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Dec 2001 11:35:29 +0100 (MET)

On Thu, 20 Dec 2001, raoul cridlig wrote:

> Is there a function which returns an error message corresponding to the
> CURLE_XXXerrror code ?

Kind of. Pass a buffer pointer with the CURLOPT_ERRORBUFFER option. Make sure
the buffer is at least CURL_ERROR_SIZE bytes big.

You'll have an error string in there when the library returns error.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-12-20