1<testcase>
2<info>
3<keywords>
4FTP
5PORT
6FAILURE
7</keywords>
8</info>
9# Server-side
10<reply>
11<servercmd>
12REPLY PORT 314 bluah you f00l!
13</servercmd>
14</reply>
15
16# Client-side
17<client>
18<server>
19ftp
20</server>
21# EPRT is only sent when IPv6 is enabled
22<features>
23ipv6
24</features>
25 <name>
26FTP download, failed PORT
27 </name>
28 <command>
29ftp://%HOSTIP:%FTPPORT/116 -P 1.2.3.4
30</command>
31</client>
32
33# Verify data after the test has been "shot"
34<verify>
35<errorcode>
3630
37</errorcode>
38# Strip the port number but leave the rest
39<strippart>
40s/^(PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},)\d{1,3},\d{1,3}/$1/
41s/^(EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|)\d{1,5}\|/$1/
42</strippart>
43<protocol>
44USER anonymous
45PASS ftp@example.com
46PWD
47EPRT |1|1.2.3.4|
48PORT 1,2,3,4,
49QUIT
50</protocol>
51</verify>
52</testcase>
53