mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:13:32 +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
45
tests/data/test290
Normal file
45
tests/data/test290
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
--max-filesize
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<size>
|
||||
85
|
||||
</size>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP download maximum filesize exceeded
|
||||
</name>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/290 --max-filesize 30
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
63
|
||||
</errorcode>
|
||||
<strip>
|
||||
</strip>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
SIZE 290
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue