1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-14 05:25:06 -05:00
curl/tests/data/test337
Daniel Stenberg 65f5b958c9
FTP: allow "rubbish" prepended to the SIZE response
This is a protocol violation but apparently there are legacy proprietary
servers doing this.

Added test 336 and 337 to verify.

Reported-by: Philippe Marguinaud
Closes #4339
2019-09-13 14:21:00 +02:00

59 lines
704 B
Plaintext

<testcase>
<info>
<keywords>
FTP
PASV
TYPE A
RETR
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
<datacheck nonewline="yes">
data
</datacheck>
<servercmd>
REPLY EPSV 500 no such command
REPLY SIZE 213 file: 213, Size =51
</servercmd>
</reply>
# Client-side
<client>
<server>
ftp
</server>
<name>
FTP range download with SIZE returning extra crap
</name>
<command>
ftp://%HOSTIP:%FTPPORT/337 --use-ascii --range 3-6
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
EPSV
PASV
TYPE A
SIZE 337
REST 3
RETR 337
ABOR
QUIT
</protocol>
</verify>
</testcase>