cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re[3]: more detailed error reporting

From: Serge Semashko <ss_at_vba.com.by>
Date: Mon, 2 Jun 2003 18:04:47 +0300

Hello Daniel,

Monday, June 02, 2003, 2:47:13 PM, you wrote:

>> 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?

DS> curl_easy_getinfo() with the CURLINFO_HTTP_CODE option should make that
DS> possible.
Thanks for the information.

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

DS> Right, we should make it report a different error message. What about
DS> changing it to "The requested URL returned error: NNN" ?
Yes, that would be quite acceptable.

I just write error message returned by libcurl in the log of my
program. I was a bit confused when saw there "The requested file was
not found". The problem was because of NTLM authentication in that
case and the server returned 407.

By the way, what is the current progress with NTLM support?
I had to add additional code using wininet to solve this specific
problem, but would better like working only using libcurl and do not
overbloat my program.

-------------------------------------------------------
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