cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to detect missing Content-Length response header?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 Feb 2009 17:32:18 +0100 (CET)

On Fri, 20 Feb 2009, Daniel Stenberg wrote:

>> to detect Content-Length actually being 0, vs the Content-Length header not
>> being sent.
>
> Oh indeed. I consider that a bug. How would you prefer it to act?

Okay then, may I suggest that it returns a -1 if the size is unknown? Having
the function return an error is also possible, but that feels wrong to me
since the function doesn't actually fail, it just can't return a proper
size...

-- 
  / daniel.haxx.se
Received on 2009-02-23