On Fri, 16 Oct 2009, Xu, Qiang (FXSGSC) wrote:

Maybe, it is because SFTP protocol doesn't specify what ~ represents. But it works when I uploaded a file using "./curl -v -u qxu:fair123 -T CMakeLists.txt sftp://13.198.98.190/~/scan/test.txt";, as Guenter suggested.

Kind of strange here.

No, that's not strange at all actually. The "~" when part of the URL is handed by libcurl, as per the draft URI syntax for SFTP. That doesn't imply that the SFTP protocol itself has any knowledge of what "~" means.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to