cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Upload via FTPS not uploading

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Aug 2013 09:46:50 +0200 (CEST)

On Wed, 14 Aug 2013, Joseph Fisher wrote:

> curl -k -v 1 --ftp-ssl --ftp-pasv --ftp-ssl-reqd -T /my.file
> ftp://myusername@myhost:port/backup_dir/my.file

The number "1" in there is the key. -v doesn't take any argument so the
left-over 1 is treated as a URL and that's what you see as IP address 0.0.0.1
in the verbose output.

Then -T needs to be specified once for each URL and since 1 is the first URL,
the only -T is "spent" on that and then the second URL (your "real" one) will
be without -T and thus curl will instead try to read from that.

I bet things go much better if you remove the 1...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-08-15