cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: libcurl and libssh2

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Fri, 9 Oct 2009 17:13:54 +0800

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Michael Wood
> Sent: Friday, October 09, 2009 5:00 PM
> To: libcurl development
> Subject: Re: libcurl and libssh2
>
> 2009/10/9 Michael Wood <esiotrot_at_gmail.com>:
> > 2009/10/9 Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>:
> [...]
> >> 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 sftp://shell.example.com/etc/issue --libcurl
> > ssh2-download-example.c curl -T uploadfile -u user:passwd
> > ftp://ftp.upload.com/myfile --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 :)

Never mind. I can understand that. Still, your explanation helps. :-)

Thanks a lot,
Xu Qiang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-09