mirror of
https://github.com/curl/curl.git
synced 2026-07-26 20:17:18 +03:00
FTP: allow SIZE to fail when doing (resumed) upload
Added test 362 to verify.
Reported-by: Jordan Brown
Regression since 7ea2e1d0c5 (7.73.0)
Fixes #6715
Closes #6725
This commit is contained in:
parent
dcccd8dd25
commit
7b2f0676c2
3 changed files with 58 additions and 3 deletions
51
tests/data/test362
Normal file
51
tests/data/test362
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
EPSV
|
||||
STOR
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP resume upload file with nothing to start from
|
||||
</name>
|
||||
<file name="log/test362.txt">
|
||||
data
|
||||
to
|
||||
see
|
||||
that FTP
|
||||
works
|
||||
so does it?
|
||||
</file>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/362 -T log/test362.txt --continue-at -
|
||||
</command>
|
||||
</client>
|
||||
|
||||
<verify>
|
||||
<upload>
|
||||
data
|
||||
to
|
||||
see
|
||||
that FTP
|
||||
works
|
||||
so does it?
|
||||
</upload>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
SIZE 362
|
||||
STOR 362
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue