diff options
author | Yang Tse <yangsita@gmail.com> | 2011-10-26 18:55:35 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-10-26 18:57:14 +0200 |
commit | 692f344118c42a68cfb2f0b4c8feffb8ef6947c8 (patch) | |
tree | 1cbc7871b3df4d2a92b19376c93307d6c063ec34 /tests/data/test589 | |
parent | 51e5a2bf3fc4b555e118ecede183d7e3d8e4fb88 (diff) |
test 589: active FTP upload using multi timeout and EPRT disabled server
Diffstat (limited to 'tests/data/test589')
-rw-r--r-- | tests/data/test589 | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/tests/data/test589 b/tests/data/test589 new file mode 100644 index 000000000..29cb97217 --- /dev/null +++ b/tests/data/test589 @@ -0,0 +1,68 @@ +# +# For this test the server rejects the EPRT command +# and code in lib589 makes use of curl_multi_timeout() +# +<testcase> +<info> +<keywords> +FTP +PORT +STOR +multi +EPRT refused +</keywords> +</info> + +# Server-side +<reply> +<data> +</data> +<servercmd> +REPLY EPRT 500 we don't like EPRT now +</servercmd> +</reply> + +# Client-side +<client> +<server> +ftp +</server> +<tool> +lib589 +</tool> + <name> +FTP PORT upload using multi interface timeout, EPRT doesn't work + </name> + <command> +ftp://%HOSTIP:%FTPPORT/path/589 log/upload589 +</command> +<file name="log/upload589"> +Moooooooooooo for 589 + upload this +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +# Strip off parts of the PORT and EPRT commands that might differ +<strippart> +s/^PORT (.*)/PORT/ +s/^EPRT \|1\|(.*)/EPRT \|1\|/ +</strippart> +<protocol> +USER anonymous
+PASS ftp@example.com
+PWD
+CWD path
+EPRT |1| +PORT +TYPE I
+STOR 589
+QUIT
+</protocol> +<upload> +Moooooooooooo for 589 + upload this +</upload> +</verify> +</testcase> |