cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Conditions for CURLE_PARTIAL_FILE (18)

From: Michael-O <1983-01-06_at_gmx.net>
Date: Sat, 16 Nov 2013 11:35:40 +0100

Am 2013-11-15 23:40, schrieb Daniel Stenberg:
> On Fri, 15 Nov 2013, Michael-O wrote:
>
>> The server returns 'text/plain' with 'Transfer-Encoding: chunked'. As
>> far as I understood this [1], 18 is returned only when Content-Length
>> is present and the value does not match to the actual bytes. Does this
>> apply for chunked data too when bytes do not match to the amount of
>> bytes written in the response body?
>
> Yes, if there's data left in a chunk when the transfer ends. A broken
> last chunk.
>

Thanks a lot. I would have expected the docs to be clearer in the case
of chunked transfer or at least mention chunked transfer in contrast to
fixed-size Content-Length.

Michael
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-16