diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-02-18 23:40:29 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-04-12 23:59:37 +0200 |
commit | c5ba0c2f5446532798ff68b598326f5f994616c1 (patch) | |
tree | 29fa64ced4062750866fa2089bf756e3535089dc /tests/data | |
parent | edddf394b8634079a0b7c43c126e33ed9fa578b1 (diff) |
FTP: handle a 230 welcome response
...instead of the 220 we otherwise expect.
Made the ftpserver.pl support sending a custom "welcome" and then
created test 1219 to verify this fix with such a 230 welcome.
Bug: http://curl.haxx.se/mail/lib-2013-02/0102.html
Reported by: Anders Havn
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/Makefile.am | 2 | ||||
-rw-r--r-- | tests/data/test1219 | 49 |
2 files changed, 50 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index c3857d2f5..875a35d3a 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -89,7 +89,7 @@ test1128 test1129 test1130 test1131 test1132 test1133 \ \ test1200 test1201 test1202 test1203 test1204 test1205 test1206 test1207 \ test1208 test1209 test1210 test1211 test1212 test1213 test1214 test1215 \ -test1216 test1217 test1218 \ +test1216 test1217 test1218 test1219 \ test1220 test1221 test1222 test1223 test1224 test1225 test1226 test1227 \ \ test1300 test1301 test1302 test1303 test1304 test1305 test1306 test1307 \ diff --git a/tests/data/test1219 b/tests/data/test1219 new file mode 100644 index 000000000..e42a211a2 --- /dev/null +++ b/tests/data/test1219 @@ -0,0 +1,49 @@ +<testcase> +<info> +<keywords> +FTP +PASV +RETR +</keywords> +</info> +# Server-side +<reply> +<data> +data + to + see +that FTP +works + so does it? +</data> +<servercmd> +REPLY welcome 230 welcome without password +</servercmd> +</reply> + +# Client-side +<client> +<server> +ftp +</server> + <name> +FTP with no user+password required (230 response) + </name> + <command> +ftp://%HOSTIP:%FTPPORT/1219 +</command> + +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +PWD
+EPSV
+TYPE I
+SIZE 1219
+RETR 1219
+QUIT
+</protocol> +</verify> +</testcase> |