added test135 ftp byte-range download
authorDaniel Stenberg <daniel@haxx.se>
Tue, 11 Jun 2002 12:25:46 +0000 (12:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Jun 2002 12:25:46 +0000 (12:25 +0000)
tests/data/Makefile.am
tests/data/test135 [new file with mode: 0644]

index aae68b9..a9504be 100644 (file)
@@ -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 (file)
index 0000000..ec39ecd
--- /dev/null
@@ -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\r
+PASS curl_by_daniel@haxx.se\r
+PWD\r
+EPSV\r
+TYPE I\r
+SIZE 135\r
+REST 4\r
+RETR 135\r
+</protocol>
+</verify>