cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problem uploading to a subdirectory

From: Scott MacDonald <scott_at_porcupinecomputers.com>
Date: Tue, 24 Jan 2012 14:20:25 -0500

I can access and upload to the default directory but if I try to list or
upload to the subfolder "in" I get errors.

The following works:

# curl -k -u user:pass --ftp-ssl ftp://ftp.url.com:2130

And returns:

drwxr-x--- 2 gcs21si System 0 Jan 24 03:36 .
drwxr-x--- 2 gcs21si System 0 Jan 10 11:45 ..
drwxr-x--- 2 gcs21si System 0 Jan 23 19:01 Archive
drwxr-x--- 2 gcs21si System 0 Jan 23 14:58 In
drwxr-x--- 2 gcs21si System 0 Jan 24 13:11 Out

# curl -k -T tfile -u user:pass --ftp-ssl ftp://ftp.url.com:2130

Also works and uploads the file.

When I try to access the subfolder "in" with either of these paths I get the
errors indicated.

# curl -k -u user:pass --ftp-ssl ftp://ftp.url.com:2130/users/user/in
I get curl: (9) Server denied you to change to the given directory

# curl -k -u user:pass --ftp-ssl ftp://ftp.url.com:2130/in
I get curl: (19) RETR response: 550

I'm able to login to the server with Filezilla and access all subfolders.

If I try to upload a file I get the following:

# curl -k -T tfile -u user:pass --ftp-ssl ftp://ftp.url.com:2130/in
I get curl: (25) Failed FTP upload: 550

Thanks in advance for any suggestions.

Scott

-------------------------------------------------------------------
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 2012-01-24