From 177dbc7be07125582ddb7416dba7140b88ab9f62 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Jan 2005 22:13:12 +0000 Subject: 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. --- tests/data/test229 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/data/test229 (limited to 'tests/data/test229') diff --git a/tests/data/test229 b/tests/data/test229 new file mode 100644 index 000000000..ea8ceb53a --- /dev/null +++ b/tests/data/test229 @@ -0,0 +1,32 @@ +# Server-side + + + +# Client-side + + +ftp + + +FTP RETR with bad ACCT + + +ftp://%HOSTIP:%FTPPORT/229 --ftp-account "one count" + + +REPLY PASS 332 please provide account name +REPLY ACCT 532 bluah! + + + +# Verify data after the test has been "shot" + + +USER anonymous +PASS curl_by_daniel@haxx.se +ACCT one count + + +11 + + -- cgit v1.2.3