1<testcase>
2<info>
3<keywords>
4FTP
5PORT
6RETR
7FAILURE
8</keywords>
9</info>
10# Server-side
11<reply>
12<servercmd>
13REPLY RETR 314 bluah you f00l!
14</servercmd>
15</reply>
16
17# Client-side
18<client>
19<server>
20ftp
21</server>
22 <name>
23FTP download, failed RETR with PORT
24 </name>
25 <command>
26ftp://%HOSTIP:%FTPPORT/119 -P -
27</command>
28</client>
29
30# Verify data after the test has been "shot"
31<verify>
32<errorcode>
3319
34</errorcode>
35# Strip all valid kinds of PORT and EPRT that curl can send
36<strip>
37^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
38^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
39</strip>
40<protocol>
41USER anonymous
42PASS ftp@example.com
43PWD
44TYPE I
45SIZE 119
46RETR 119
47QUIT
48</protocol>
49</verify>
50</testcase>
51