mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
test1414: FTP PORT download without SIZE support
This commit is contained in:
parent
2e00872c04
commit
1016637f5a
@ -110,7 +110,7 @@ test1388 test1389 test1390 test1391 test1392 test1393 test1394 test1395 \
|
|||||||
test1396 \
|
test1396 \
|
||||||
\
|
\
|
||||||
test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \
|
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 \
|
test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \
|
||||||
test1508 test1509 test1510 test1511 \
|
test1508 test1509 test1510 test1511 \
|
||||||
|
57
tests/data/test1414
Normal file
57
tests/data/test1414
Normal 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>
|
Loading…
Reference in New Issue
Block a user