cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

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

From: SourceForge.net <noreply_at_sourceforge.net>
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:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1693337&group_id=976

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/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!

----------------------------------------------------------------------

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

Message:
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?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1693337&group_id=976
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