cURL / Mailing Lists / curl-library / Single Mail


Re: basic FTP functions

From: Khaled El Manawhly <>
Date: Thu, 4 Oct 2012 09:09:11 -0400

Yes SFTP is what I'm looking for, however the libssh2 code seems a lot more
confusing than libcurl. For normal FTP via wininet each function I
mentioned is one line of code, so I'm sure theres a simple way of doing it
in libcurl, I just cant seem to get it. Any ideas?

On Wed, Oct 3, 2012 at 8:39 AM, Maxime Larocque <> wrote:

> Hi Khaled,
> Le 03/10/2012 08:17, Khaled El Manawhly a écrit :
>> I'm trying to make a command line program that allows for basic FTP
>> functionality over an SSH connection.
> Do you want a sftp functionality (sftp is the file transfer protocol for
> ssh) or a traditional FTP somehow put over a SSH connection?
>> Specifically I need to open a connection, then ask the user which of
>> these functions he would like to perform:
>> curl uses libssh2 to provide sftp connectivity; you can check it at
> <>. Take a look at the libssh2
> examples. It may be a better fit for your application, if you only plan to
> support sftp. Otherwise curl is good at supporting a number of known and
> less known protocols.
> Regards,
> Maxime
> ------------------------------**------------------------------**-------
> List admin:**listinfo/curl-library<>
> Etiquette:**etiquette.html<>

List admin:
Received on 2012-10-04