]> granicus.if.org Git - curl/commitdiff
verify that transferring a zero byte FTP file results in a zero byte local
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Aug 2004 14:41:19 +0000 (14:41 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Aug 2004 14:41:19 +0000 (14:41 +0000)
file

tests/data/Makefile.am
tests/data/test182 [new file with mode: 0644]

index 4da5fc3af8301e5c685d28bc02f73abc7a411bdf..32e64a22f4d2b1fc23788fe3f8311cdd02f9c141 100644 (file)
@@ -25,7 +25,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46        \
  test158 test159 test511 test160 test161 test162 test163 test164       \
  test512 test165 test166 test167 test168 test169 test170 test171       \
  test172 test204 test205 test173 test174 test175 test176 test177       \
- test513 test514 test178 test179 test180 test181
+ test513 test514 test178 test179 test180 test181 test182
 
 # The following tests have been removed from the dist since they no longer
 # work. We need to fix the test suite's FTPS server first, then bring them
diff --git a/tests/data/test182 b/tests/data/test182
new file mode 100644 (file)
index 0000000..5eac8b7
--- /dev/null
@@ -0,0 +1,35 @@
+# Server-side
+<reply>
+<data sendzero=yes>
+</data>
+<size>
+0
+</size>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+<name>
+FTP download an empty file
+</name>
+<command>
+ftp://%HOSTIP:%FTPPORT/182
+</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 182\r
+RETR 182\r
+QUIT\r
+</protocol>
+</verify>