Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test116
blob31e65293a4c787c2aaed9440c53e1da1caf103bc
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>
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>
33 # Verify data after the test has been "shot"
34 <verify>
35 <errorcode>
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
45 PASS ftp@example.com
46 PWD
47 EPRT |1|1.2.3.4|
48 PORT 1,2,3,4,
49 QUIT
50 </protocol>
51 </verify>
52 </testcase>