aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-11 12:25:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-11 12:25:46 +0000
commit109cbbe9c5cd349d692d127d816192b88d5c9890 (patch)
tree6d15c4c150994fdd01c4675134548045e8754972
parentfd3881eaa6b2775b19ef86f7af068e80c69ae6a6 (diff)
added test135 ftp byte-range download
-rw-r--r--tests/data/Makefile.am2
-rw-r--r--tests/data/test13539
2 files changed, 40 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index aae68b9f8..a9504be39 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -16,5 +16,5 @@ test105 test114 test123 test19 test24 test302 test43 test31 \
test106 test115 test124 test190 test25 test303 test44 test38 \
test107 test116 test125 test2 test26 test33 test45 test126 \
test304 test39 test32 test128 test48 \
-test130 test131 test132 test133 test134
+test130 test131 test132 test133 test134 test135
diff --git a/tests/data/test135 b/tests/data/test135
new file mode 100644
index 000000000..ec39ecd0b
--- /dev/null
+++ b/tests/data/test135
@@ -0,0 +1,39 @@
+# Server-side
+<reply>
+<data>
+0123456789abcdef
+0123456789abcdef
+0123456789abcdef
+0123456789abcdef
+</data>
+<datacheck nonewline=yes>
+0123456789abc
+</datacheck>
+<size>
+64
+</size>
+</reply>
+
+# Client-side
+<client>
+ <name>
+FTP retrieve a byte-range
+ </name>
+ <command>
+-r 4-16 ftp://%HOSTIP:%FTPPORT/135
+</command>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS curl_by_daniel@haxx.se
+PWD
+EPSV
+TYPE I
+SIZE 135
+REST 4
+RETR 135
+</protocol>
+</verify>