verify that transferring a zero byte FTP file results in a zero byte local

file
This commit is contained in:
Daniel Stenberg 2004-08-23 14:41:19 +00:00
parent 464be27479
commit b233c13dca
2 changed files with 36 additions and 1 deletions

View 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

35
tests/data/test182 Normal file
View File

@ -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
PASS curl_by_daniel@haxx.se
PWD
EPSV
TYPE I
SIZE 182
RETR 182
QUIT
</protocol>
</verify>