curl/tests/data/test416
fractal-access 383fb29da1
test416: verify growing FTP file support
Added setting: RETRSIZE [size] in the <servercmd> section. When set this
will cause the test FTP server to return the size set (rather than the
actual size) in the acknowledgement from a RETR request.

Closes #9772
2022-11-26 17:06:28 +01:00

52 lines
652 B
Plaintext

<testcase>
<info>
<keywords>
FTP
EPSV
RETR
Range
</keywords>
</info>
# Server-side
<reply>
<data>
0123456789abcdef0123456789abcdef0123456789abcdef
</data>
<datacheck>
0123456789abcdef0123456789abcdef0123456789abcdef
</datacheck>
<servercmd>
RETRSIZE 7
</servercmd>
<size>
8
</size>
</reply>
# Client-side
<client>
<server>
ftp
</server>
<name>
FTP growing file support
</name>
<command>
--ignore-content-length ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
EPSV
TYPE I
RETR %TESTNUMBER
QUIT
</protocol>
</verify>
</testcase>