cURL / Mailing Lists / curl-library / Single Mail


Re: Problem downloading using text transfer mode

From: Dan Fandrich <>
Date: Fri, 27 Jun 2008 08:27:22 -0700

On Fri, Jun 27, 2008 at 09:42:37AM +0200, Abel Alonso wrote:
> 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.

If the server sends the file exactly as stored there, and the file is stored
without CR/LF line endings, then the server is not converting the line ends
on download. The canonical FTP ASCII transfer mode has CR/LF line endings.
If the server is not converting them on downloads in TYPE A mode, then the
server is at fault.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-27