cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl and libssh2

From: Michael Wood <>
Date: Fri, 9 Oct 2009 11:00:29 +0200

2009/10/9 Michael Wood <>:
> 2009/10/9 Xu, Qiang (FXSGSC) <>:
>> This is command-line usage. Our printer is using the library, so I want to know what option should be set with curl_easy_setopt(), in case of file transfer via SFTP?
> The curl command can generate sample code for any options you specify.
> Try this:
> curl -u username s --libcurl
> ssh2-download-example.c
> curl -T uploadfile -u user:passwd
> --libcurl ssh2-upload-example.c
> and then examine the ssh2-{download,upload}-example.c files that are generated.

Sorry, gmail wrapped those. That should be two separate curl commands
with everything from "curl" up to "...-example.c" on the same line.
And of course, the second one should probably be called
ftp-upload-example.c instead of ssh2-upload-example.c :)

Michael Wood <>
List admin:
Received on 2009-10-09