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