cURL / Mailing Lists / curl-library / Single Mail

curl-library

convertion problem CRLF to LF in SFTP

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

Dear,

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: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-03-03