curl-library
Re: ERRORBUFFER and curl_easy_strerror
Date: Wed, 18 Apr 2007 14:57:14 +0200
Daniel Stenberg ha scritto:
> On Tue, 17 Apr 2007, Francesco Montorsi wrote:
>
>> if I try to do an invalid operation (e.g. uploading data to
>> www.google.it) with a libcurl handle where I set on the
>> CURLOPT_ERRORBUFFER option, the error message I get out from that
>> buffer is different from the error message which I get using
>> curl_easy_strerror on the error code returned by curl_easy_perform...
>
> Yes, what would be the point of having both otherwise?
right :)
>> Also, are the ERRORBUFFER contents always more detailed than the
>> curl_easy_strerror's returned string?
>
> Not always, but sometimes or perhaps mostly.
ok, thanks. I asked because I want to show the errors to the user and I
think I'll show the curl_easy_strerror return value since in my tests
ERRORBUFFER contents often contain references to e.g. select()/poll()
functions which the user probably doesn't know about.
Thanks,
Francesco
Received on 2007-04-18