cURL / Mailing Lists / curl-library / Single Mail


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

From: Bram de Jong <>
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.

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


  - Bram
List admin:
Received on 2014-02-24