cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem downloading using text transfer mode

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 26 Jun 2008 14:03:09 -0700

On Thu, Jun 26, 2008 at 01:15:11PM +0200, Abel Alonso wrote:
> I tried to download the file in ASCII with filezilla and the file is download
> correctly. So I guess that the problem is only in the download process and not
> in the upload, because the file in the server is correct.
>
> 2008/6/26 Abel Alonso <abelalon_at_gmail.com>:
>
> Opening files in text mode It still fails. The problem is that if I have
> this file:
>
> asdf
> as
>
> In windows its size is 8B because the line ending is CRLF and in Linux is
> 7B. When I upload that file it is stored in the server with a size of 7B,
> but when I download it again the size doesn't turn to 8B and I miss the
> last character.

Are you sure the server supports end of line conversions? curl won't
magically convert the file itself unless it does, whereas it's possible
filezilla might do so.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-26