2007-01-23 05:25:56 +03:00
|
|
|
<testcase>
|
2012-11-16 15:42:51 +04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
FTP
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-11-26 01:21:49 +03:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
data blobb
|
|
|
|
</data>
|
2007-04-19 00:22:01 +04:00
|
|
|
<servercmd>
|
|
|
|
REPLY EPRT 500 no such command
|
|
|
|
</servercmd>
|
2004-11-26 01:21:49 +03:00
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
2007-09-18 03:23:13 +04:00
|
|
|
ftp
|
2004-11-26 01:21:49 +03:00
|
|
|
</server>
|
2007-09-18 21:41:04 +04:00
|
|
|
# EPRT is only sent when IPv6 is enabled
|
|
|
|
<features>
|
|
|
|
ipv6
|
|
|
|
</features>
|
2004-11-26 01:21:49 +03:00
|
|
|
<name>
|
2006-01-20 02:52:03 +03:00
|
|
|
Get two FTP files with no remote EPRT support
|
2004-11-26 01:21:49 +03:00
|
|
|
</name>
|
|
|
|
<command>
|
|
|
|
ftp://%HOSTIP:%FTPPORT/a/path/212 ftp://%HOSTIP:%FTPPORT/a/path/212 -P -
|
|
|
|
</command>
|
2004-11-30 13:20:59 +03:00
|
|
|
<stdout>
|
|
|
|
data blobb
|
|
|
|
data blobb
|
|
|
|
</stdout>
|
|
|
|
</client>
|
2004-11-26 01:21:49 +03:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2007-09-18 01:44:57 +04:00
|
|
|
# Strip the addresses and port number but leave the rest
|
2004-11-26 01:21:49 +03:00
|
|
|
<strippart>
|
2007-09-18 01:44:57 +04:00
|
|
|
s/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/
|
|
|
|
s/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/
|
2004-11-26 01:21:49 +03:00
|
|
|
</strippart>
|
|
|
|
<protocol>
|
|
|
|
USER anonymous
|
2007-02-14 01:50:16 +03:00
|
|
|
PASS ftp@example.com
|
2004-11-26 01:21:49 +03:00
|
|
|
PWD
|
|
|
|
CWD a
|
|
|
|
CWD path
|
2007-09-18 01:44:57 +04:00
|
|
|
EPRT |1|
|
|
|
|
PORT
|
2004-11-26 01:21:49 +03:00
|
|
|
TYPE I
|
|
|
|
SIZE 212
|
|
|
|
RETR 212
|
2007-09-18 01:44:57 +04:00
|
|
|
PORT
|
2004-11-26 01:21:49 +03:00
|
|
|
SIZE 212
|
|
|
|
RETR 212
|
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 05:25:56 +03:00
|
|
|
</testcase>
|