cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem downloading using text transfer mode

From: Abel Alonso <abelalon_at_gmail.com>
Date: Fri, 27 Jun 2008 09:42:37 +0200

The server converts the end of line, because what I receive is a file of the
same size of the one in the server and with the CRLF line ending. The
problem is that the size of the file received doesn't grew up as bytes as
end of lines it has.

2008/6/26 Dan Fandrich <dan_at_coneharvesters.com>:

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