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)
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
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
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.htmlReceived on 2013-04-12