summaryrefslogtreecommitdiff
path: root/tests/data/test1057
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-08-01 22:12:34 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-08-01 22:12:34 +0000
commitf27299dc3b609f5d4165830051b5568f64ca6063 (patch)
treec036e92b71244bdc818dfed2417b32a6914a29d9 /tests/data/test1057
parent47724ef23852a059e0b832dab448ddfd99967fe6 (diff)
downloadcurl-f27299dc3b609f5d4165830051b5568f64ca6063.tar.gz
curl-f27299dc3b609f5d4165830051b5568f64ca6063.tar.bz2
curl-f27299dc3b609f5d4165830051b5568f64ca6063.zip
Added tests 1057 and 1058 to test FTP and HTTPS transfers with ranges
relative to end of file.
Diffstat (limited to 'tests/data/test1057')
-rw-r--r--tests/data/test105751
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/data/test1057 b/tests/data/test1057
new file mode 100644
index 000000000..cfb88f2c5
--- /dev/null
+++ b/tests/data/test1057
@@ -0,0 +1,51 @@
+<testcase>
+<info>
+<keywords>
+FTP
+EPSV
+RETR
+Range
+</keywords>
+</info>
+
+# Server-side
+<reply>
+<data>
+456789abcdef
+</data>
+<datacheck nonewline="yes">
+456789abcdef
+</datacheck>
+<size>
+64
+</size>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+ <name>
+FTP retrieve a byte-range relative to end of file
+ </name>
+ <command>
+-r -12 ftp://%HOSTIP:%FTPPORT/1057
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS ftp@example.com
+PWD
+EPSV
+TYPE I
+SIZE 1057
+REST 52
+RETR 1057
+QUIT
+</protocol>
+</verify>
+</testcase>