cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Any reason why:

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 19 Oct 2001 13:41:45 +0200 (MET DST)

On Tue, 16 Oct 2001, Lucas Adamski wrote:

> That's correct. Well, in cases where there is not a header or anything
> else returned from the server would seem like an error of some sort. I
> would suggest a new error status type returned from curl_easy_perform,
> something to the effect of "No header received from server". Otherwise,
> if it returns 0 then my assumption is that the protocol sequenced
> correctly. Thanks,

I agree. When using HTTP to request a document, getting nothing (not even a
header) in return must be considered an error.

I'll probably introduce a brand new error code, CURLE_PARTIAL_FILE is what
seems to be the best match right now but I don't think it would tell exactly
what happened.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-10-19