cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem downloading using text transfer mode

From: Abel Alonso <abelalon_at_gmail.com>
Date: Mon, 23 Jun 2008 23:41:23 +0200

2008/6/23 Daniel Stenberg <daniel_at_haxx.se>:

> 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 ?

Yep, CRLF

>
>
> I upload that file
>>
>
> Upload how? Using what protocol?
>

FTP

> 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?

I receive the file using CRLF 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?

I'll send it to you tomorrow :)

Thank you so much!
Received on 2008-06-23