cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re[2]: more detailed error reporting

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 2 Jun 2003 13:47:13 +0200 (CEST)

On Mon, 2 Jun 2003, Serge Semashko wrote:

> DS> I'm sorry, but I don't agree we need to provide this additional info.
> DS> Those reasons are perfectly and more accurately described in the HTTP
> DS> RFC.
>
> The point is that when CURLOPT_FAILONERROR option is set in
> curl_easy_perform, there is no way to get this HTTP error code from
> libcurl, or am I wrong?

curl_easy_getinfo() with the CURLINFO_HTTP_CODE option should make that
possible.

> I addition, current string for error buffer is not quite correct, it is
> always set to "The requested file was not found".

Right, we should make it report a different error message. What about
changing it to "The requested URL returned error: NNN" ?

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-02