1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00
curl/tests/data/test228
Daniel Stenberg 177dbc7be0 Ian Ford asked about support for the FTP command ACCT, and I discovered it is
present in RFC959... so now (lib)curl supports it as well. --ftp-account and
CURLOPT_FTP_ACCOUNT set the account string. (The server may ask for an account
string after PASS have been sent away. The client responds with "ACCT [account
string]".) Added test case 228 and 229 to verify the functionality. Updated
the test FTP server to support ACCT somewhat.
2005-01-25 22:13:12 +00:00

45 lines
568 B
Plaintext

# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
</reply>
# Client-side
<client>
<server>
ftp
</server>
<name>
FTP RETR with ACCT
</name>
<command>
ftp://%HOSTIP:%FTPPORT/228 --ftp-account "one count"
</command>
<file name="log/ftpserver.cmd">
REPLY PASS 332 please provide account name
REPLY ACCT 230 thank you
</file>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
ACCT one count
PWD
EPSV
TYPE I
SIZE 228
RETR 228
QUIT
</protocol>
</verify>