cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: a question regarding SFTP using curl

From: Michael Wood <esiotrot_at_gmail.com>
Date: Tue, 7 Apr 2009 08:04:20 +0200

On Mon, Apr 6, 2009 at 2:53 PM, Zhonggui Li <zhongguili_at_gmail.com> wrote:
> Hi,
>
> I am using Curl to upload file with SFTP under: SunOS 5.9. Curl version is
> as follows:
>
> $ curl --version
> curl 7.17.1 (sparc-sun-solaris2.9) libcurl/7.17.1 OpenSSL/0.9.8 zlib/1.2.3
> libssh2/0.18
> Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
> Features: IPv6 Largefile NTLM SSL libz
>
> $ curl-config --libs
> -L/develop/lib -lcurl -L/develop/lib -L/develop/lib -L/develop/lib -lssh2
> -lssl -lcrypto -lldap -lsocket -lnsl -lz
>
> When I tried with Command line, I managed to upload files to the server. So
> the key files are working.

If it worked for you with curl from the command line, then maybe you can try:

$ curl [other options] --libcurl test.c

It will generate a C program to do the same thing.

-- 
Michael Wood <esiotrot_at_gmail.com>
Received on 2009-04-07