cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: anonymous ftp

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 21 Jan 2013 22:53:36 +0100

On Mon, Jan 21, 2013 at 10:06:09AM -0500, Ashby, Nick wrote:
> I am using cURL on Linux and trying to both upload and download to different
> machines. I want to use the anonymous FTP. I have had success with using the
> command line curl ¡VO ftp://anonymous@ipaddress/remotepath to receive files but
> I am having an issue going the other way. I have tried curl ¡VT localpath ftp://
> anonymous_at_ipaddress/remotepath and get a curl: (25) Failed FTP upload: 550. If
> I use the same form and change it to sftp and actually use name and password it
> works. How can I use FTP and anonymous to successfully upload files? Thanks.

That is the correct syntax to use. It's likely that the ftp server doesn't
allow anonymous uploads, or requires that they be uploaded to a different
directory. The -v option may show a more detailed message from the server.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-21