1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

test1414: FTP PORT download without SIZE support

This commit is contained in:
Daniel Stenberg 2013-07-15 19:33:37 +02:00
parent 2e00872c04
commit 1016637f5a
2 changed files with 58 additions and 1 deletions

View File

@ -110,7 +110,7 @@ test1388 test1389 test1390 test1391 test1392 test1393 test1394 test1395 \
test1396 \
\
test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \
test1408 test1409 test1410 test1412 test1413 \
test1408 test1409 test1410 test1412 test1413 test1414 \
\
test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \
test1508 test1509 test1510 test1511 \

57
tests/data/test1414 Normal file
View File

@ -0,0 +1,57 @@
<testcase>
<info>
<keywords>
FTP
PORT
RETR
no SIZE
</keywords>
</info>
# Server-side
<reply>
<data>
data
to
see
that FTP
works
so does it?
</data>
<servercmd>
REPLY SIZE 502 no such command
REPLY EPRT 502 no such command
</servercmd>
</reply>
# Client-side
<client>
<server>
ftp
</server>
<name>
FTP PORT without SIZE or EPRT support
</name>
<command>
ftp://%HOSTIP:%FTPPORT/1414 -P -
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<strippart>
s/^(EPRT \|1\|)(.*)/$1/
s/^(PORT)(.*)/$1/
</strippart>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
EPRT |1|
PORT
TYPE I
SIZE 1414
RETR 1414
QUIT
</protocol>
</verify>
</testcase>