cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp upload with absolute paths

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 12 Apr 2013 15:33:51 +0200 (CEST)

On Wed, 10 Apr 2013, Sam Deane wrote:

> So, for example, I upload to ftp://sam:pass@example.com//test.txt

Thanks for the report!

I've verified this. It fails when getting a file like

   ftp://example.com//top.txt

but it works if there's a directory in the root dir:

   ftp://example.com//dir/top.txt

I've created a test case that can repeat it, and I'll work on a fix.

Using a URL with an encoded slash as in

   ftp://example.com/%2Ftop.txt

works, but it still doesn't actually behave entirely correct since it then
does a RETR on "/top.txt" instead of first doing "CWD /" and then a "RETR
top.txt" ...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-12