cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: libcurl and libssh2

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Mon, 12 Oct 2009 14:14:45 +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 4:58 PM
> To: libcurl development
> Subject: Re: libcurl and libssh2
>
> The curl command can generate sample code for any options you specify.
>
> Try this:
> curl -u username sftp://shell.example.com/etc/issue --libcurl
> ftp-download-example.c curl -T uploadfile -u user:passwd
> ftp://ftp.upload.com/myfile --libcurl ftp-upload-example.c
>
> and then examine the ssh2-{download,upload}-example.c files
> that are generated.

I tried your method today, unsuccessfully:
======================================
qxu@durian(pts/0):~[123]$ curl -v -u qxu:fair123 -T 01.pdf ftp://13.198.98.202//home/qxu/scan/001.pdf --libcurl ftp_upload_test.c
curl: option --libcurl: is unknown
curl: try 'curl --help' for more information
======================================
Anything wrong in my usage, Michael?

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