cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: chunked Transfer-Encoding and spurious \r\n in output

From: Bram de Jong <bram.dejong_at_native-instruments.de>
Date: Mon, 24 Feb 2014 11:12:20 +0100

Hello Daniel/curl,

On 2/21/2014 8:23 PM, Daniel Stenberg wrote:
>> I'm getting a binary file via libcurl (7.35.0) and the server is
>> sending the data in chunks to me. In the bytes I get from libcurl I
>> see spurious \r\n's.
>>
>> Is this normal? Am *I* supposed to strip out the \r\n's from the chunks?
>
> No. libcurl is supposed to hide the transfer related stuff such as
> content encoding details. And we do have numerous tests that prove that
> it mostly works too.
<snip>

My apologies, it was definitely my fault: this is what you get when you
use std output streams without settings them to binary!!

greetings,

  - Bram
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-24