]> granicus.if.org Git - curl/commitdiff
added a test case for RETR that doesn't get the size in the 150-reply
authorDaniel Stenberg <daniel@haxx.se>
Wed, 26 Feb 2003 16:56:00 +0000 (16:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 Feb 2003 16:56:00 +0000 (16:56 +0000)
tests/data/test137 [new file with mode: 0644]

diff --git a/tests/data/test137 b/tests/data/test137
new file mode 100644 (file)
index 0000000..aa6a846
--- /dev/null
@@ -0,0 +1,33 @@
+# Server-side
+<reply>
+<data>
+this is file contents
+</data>
+</reply>
+
+# Client-side
+<client>
+ <name>
+FTP download without size in RETR string
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/blalbla/lululul/137
+</command>
+<file name="log/ftpserver.cmd">
+RETRNOSIZE
+</file>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+PWD\r
+CWD blalbla/lululul\r
+EPSV\r
+TYPE I\r
+SIZE 137\r
+RETR 137\r
+</protocol>
+</verify>