cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem downloading using text transfer mode

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 Jun 2008 23:29:23 +0200 (CEST)

On Mon, 23 Jun 2008, Abel Alonso wrote:

> I have in my local Windows machine a file with the following data:
>
> 1234567890
> 1234

How are these lines separated? CRLF ?

> I upload that file

Upload how? Using what protocol?

> to a Linux machine using the text transfer mode and with
> CURLOPT_TRANSFERTEXT and CURLOPT_CRLF enabled. When I download this file
> what I get is the following:
>
> 1234567890
> 123

Using what line endings?

> This is one character less than the original file. It's just one character
> because I onlu have a line ending, if I would have 2 line endings I would
> retrieve the file with 2 characters less.

Can you please provide a full source code to a small application that repeats
the problem?

-- 
  / daniel.haxx.se
Received on 2008-06-23