I try to store file to a FTP server, and this server need Account when STOR.
From FTP protocol<RFC 959>, if STOR command have a response "532", this means "need account for storing files", we must reply ACCT to server, and as curl command, we need use option "--ftp-account" to specify a account.
I have installed curl-7.16.0 like tis:
curl 7.16.0 (i686-pc-linux-gnu) libcurl/7.16.0 OpenSSL/0.9.7f zlib/1.2.2.2 libidn/0.5.15
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IDN Largefile NTLM SSL libz
when Using the curl's option "--ftp-account" as following:
curl ftp://user:password@myftpsite.com/upload_dir/upload_file --ftp-account ******* -T need_upload_file -v
And get debug information:
> USER user
< 331 Please specify the password.
> PASS password
< 230 Login successful.
> PWD
< 257 "/*****/"
* Entry path is '/******'
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||16055|)
* Trying *.*.*.*... connected
* Connecting to *.*.*.* (*.*.*.*) port 16055
> TYPE I
< 200 Switching to Binary mode.
> STOR ******
< 532 Need account for storing files.
* Failed FTP upload: ******
* DO-MORE phase ends with 25
* Uploaded unaligned file size (0 out of 5 bytes)
I don't know which reasons caused this error.
I would appreciate any feedback!
Logged In: YES
user_id=1110
Originator: NO
Yeps, curl expects the ACCT request to appear first, in the login procedure so it doesn't support this...
I figure it can be fixed (by catching the STOR's 532 response, send the ACCT command and then go back to send the STOR again). Can you provide a protocol dump for this when you use a plain ftp client to do the same operation?
Logged In: YES
user_id=1110
Originator: NO
please?
Logged In: YES
user_id=1110
Originator: NO
This is now known bug #41