cURL / Mailing Lists / curl-library / Single Mail


convertion problem CRLF to LF in SFTP

From: Mounir BATTEOUI <>
Date: Thu, 3 Mar 2016 09:07:18 +0000


I encounter a problem when sending a file from a Windows environment to UNIX, I use this method to transfer SFTP, the problem is that the file transmitted to the UNIX and CRLF format of after using multiple parameters (--data-ascii, -B), the file is always CRLF.

 Does the transfer SFTP supports CRLF to LF convention?

 Here is the command used

curl --data-ascii -k "sftp://XXX.XXX.XXX.XXX:22/tmp/" --user "user:pass" -T "C:\File.txt" --ftp-create-dirs

Best regards.

List admin:
Received on 2016-03-03