cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Using ftpupload.c returns a directory listing in HTML format

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Thu, 13 Aug 2015 14:43:30 +0200

 
Nils Söderman wrote:
> So, is it wrong to change name of the file for transport up to the archive? Why, if so, is the program listing:

The run does not even reach rename phase (which is legal). Obviously it fails at upload time because the ftp server has no permission to create a file in this directory (or to overwrite it if it already exists). Whether this is a global problem or a credential one depends on the server itself and maybe its configuration. Maybe your server would have accepted the upload if the credentials were set to a user/password allowed to write instead of "anonymous".

< 550 ws_data2.txt: Permission denied

is the verbose output line that exhibits the problem.

To check out these kind of troubles, maybe you should simulate manually what your program does using a client program such as, in example, filezilla. It would have shown the permission problem too.

Patrick

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-08-13