cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: libcurl and libssh2

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Thu, 15 Oct 2009 13:05:27 +0800

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Guenter
> Sent: Thursday, October 15, 2009 12:41 PM
> To: libcurl development
> Subject: Re: libcurl and libssh2
>
> Hi,
> sftp is not ftp, but something completely other.
> Try something like:
> ./curl -v -u qxu:fair123 -T CMakeLists.txt
> sftp://13.198.98.190/~/scan/test.txt

This works.

> or maybe this works also:
> ./curl -v -u qxu:fair123 -T CMakeLists.txt
> sftp://13.198.98.190/./scan/test.txt

This doesn't work.

So, if we write a path like "sftp://<ip_addr>/scan" in the curl command, the server would look for "scan" folder from its root directory. Is it?

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-15