diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-01-25 22:13:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-01-25 22:13:12 +0000 |
commit | 177dbc7be07125582ddb7416dba7140b88ab9f62 (patch) | |
tree | 427fa08bfdea3642ac8ecd19776b43b888b2bc24 /tests/data/test228 | |
parent | f2e71edcbd479345678bb03e76fad17157fc318e (diff) |
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.
Diffstat (limited to 'tests/data/test228')
-rw-r--r-- | tests/data/test228 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/data/test228 b/tests/data/test228 new file mode 100644 index 000000000..85f7989a5 --- /dev/null +++ b/tests/data/test228 @@ -0,0 +1,44 @@ +# 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> |