Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1693337 ] curl option "--ftp-account" when upload file

From: <>
Date: Tue, 03 Apr 2007 00:25:53 -0700

Bugs item #1693337, was opened at 2007-04-03 05:10
Message generated for change (Comment added) made by bagder
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: ftp
Group: bad behaviour
Status: Open
>Resolution: Accepted
>Priority: 3
Private: No
Submitted By: mytx (mytx)
Assigned to: Daniel Stenberg (bagder)
Summary: curl option "--ftp-account" when upload file

Initial Comment:
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/ 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-account ******* -T need_upload_file -v

And get debug information:
> USER user
< 331 Please specify the password.
> PASS password
< 230 Login successful.
< 257 "/*****/"
* Entry path is '/******'
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||16055|)
* Trying *.*.*.*... connected
* Connecting to *.*.*.* (*.*.*.*) port 16055
< 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!


>Comment By: Daniel Stenberg (bagder)
Date: 2007-04-03 09:25

Logged In: YES
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


You can respond by visiting:
Received on 2007-04-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET