xref: /curl/tests/data/test119 (revision cd4aee15)
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!
14REPLY SIZE 500 command not understood
15</servercmd>
16</reply>
17
18# Client-side
19<client>
20<server>
21ftp
22</server>
23<name>
24FTP download, failed RETR with PORT
25</name>
26<command>
27ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P -
28</command>
29</client>
30
31# Verify data after the test has been "shot"
32<verify>
33<strip>
34QUIT
35</strip>
36<errorcode>
3719
38</errorcode>
39# Strip all valid kinds of PORT and EPRT that curl can send
40<strip>
41^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
42^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
43</strip>
44<protocol>
45USER anonymous
46PASS ftp@example.com
47PWD
48TYPE I
49SIZE %TESTNUMBER
50RETR %TESTNUMBER
51QUIT
52</protocol>
53</verify>
54</testcase>
55