Git init
[external/curl.git] / tests / data / test116
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 PORT
6 FAILURE
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11 <servercmd>
12 REPLY PORT 314 bluah you f00l!
13 </servercmd>
14 </reply>
15
16 # Client-side
17 <client>
18 <server>
19 ftp
20 </server>
21 # EPRT is only sent when IPv6 is enabled
22 <features>
23 ipv6
24 </features>
25  <name>
26 FTP download, failed PORT
27  </name>
28  <command>
29 ftp://%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>
36 30
37 </errorcode>
38 # Strip the port number but leave the rest
39 <strippart>
40 s/^(PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},)\d{1,3},\d{1,3}/$1/
41 s/^(EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|)\d{1,5}\|/$1/
42 </strippart>
43 <protocol>
44 USER anonymous\r
45 PASS ftp@example.com\r
46 PWD\r
47 EPRT |1|1.2.3.4|\r
48 PORT 1,2,3,4,\r
49 QUIT\r
50 </protocol>
51 </verify>
52 </testcase>