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

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>