mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
Don't tear down the ftp connection if the maximum filesize was exceeded
and added tests 290 and 291 to check.
This commit is contained in:
parent
fbb1e49215
commit
ffb11ad5c6
6 changed files with 104 additions and 1 deletions
47
tests/data/test291
Normal file
47
tests/data/test291
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
RETR
|
||||
--max-filesize
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
data
|
||||
to
|
||||
see
|
||||
that FTP
|
||||
works
|
||||
so does it?
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP download maximum filesize not exceeded
|
||||
</name>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/291 --max-filesize 100
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
SIZE 291
|
||||
RETR 291
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue