diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-11-10 15:36:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-11-10 15:36:42 +0100 |
commit | 0b20de019400edb864b4d649aabead85719350ea (patch) | |
tree | 68228bdf9e3557d1bc0c3f98f9c588bd05442959 /tests/data/test1120 | |
parent | d596a523b9ebc767e348ab85778d2adb3c27c3d4 (diff) |
test1120: verify FTP response 421
curl mustn't try to use the control connection after the 421 is received
Diffstat (limited to 'tests/data/test1120')
-rw-r--r-- | tests/data/test1120 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/data/test1120 b/tests/data/test1120 new file mode 100644 index 000000000..ddec00a04 --- /dev/null +++ b/tests/data/test1120 @@ -0,0 +1,44 @@ +<testcase> +<info> +<keywords> +FTP +PORT +RETR +421 +</keywords> +</info> +# Server-side +<reply> +<servercmd> +REPLY CWD 421 Timeout! +</server> +</reply> + +# Client-side +<client> +<server> +ftp +</server> + <name> +FTP with 421 timeout response + </name> + <command> +ftp://%HOSTIP:%FTPPORT/a/path/1120 +</command> +</client> + +# Verify data after the test has been "shot" +<verify> +# Strip all valid kinds of PORT and EPRT that curl can send +<protocol> +USER anonymous
+PASS ftp@example.com
+PWD
+CWD a
+</protocol> +# CURLE_OPERATION_TIMEDOUT is 28 +<errorcode> +28 +</errorcode> +</verify> +</testcase> |