On Fri, 5 Feb 2010, Paul Monteiro wrote:

I try to connect to a simple FTP server like this :

curl.exe --user user:pass --upload-file myfile.txt ftp://127.0.0.1:222/share --trace trace.txt

<= Recv header, 43 bytes (0x2b)
0000: 53 53 48 2d 32 2e 30 2d 4f 70 65 6e 53 53 48 5f SSH-2.0-OpenSSH_
0010: 35 2e 31 70 31 2b 73 66 74 70 66 69 6c 65 63 6f 5.1p1+sftpfileco
0020: 6e 74 72 6f 6c 2d 76 31 2e 32 0a                ntrol-v1.2.
== Info: FTP response reading failed

See? That's an SSH server, not an FTP.

i can connect with psft from putty

SFTP is a sub-protocol over SSH and is a *completely* different protocol than FTP. I suggest you try using an sftp: url with libcurl instead!

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to