8daed55387eb935cdaa4ed5e0443ccb976a848ef
[platform/upstream/curl.git] / tests / data / test212
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 </keywords>
6 </info>
7
8 # Server-side
9 <reply>
10 <data>
11 data blobb
12 </data>
13 <servercmd>
14 REPLY EPRT 500 no such command
15 </servercmd>
16 </reply>
17
18 # Client-side
19 <client>
20 <server>
21 ftp
22 </server>
23 # EPRT is only sent when IPv6 is enabled
24 <features>
25 ipv6
26 </features>
27  <name>
28 Get two FTP files with no remote EPRT support
29  </name>
30  <command>
31 ftp://%HOSTIP:%FTPPORT/a/path/212 ftp://%HOSTIP:%FTPPORT/a/path/212 -P -
32 </command>
33 <stdout>
34 data blobb
35 data blobb
36 </stdout>
37 </client>
38
39 # Verify data after the test has been "shot"
40 <verify>
41 # Strip the addresses and port number but leave the rest
42 <strippart>
43 s/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/
44 s/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/
45 </strippart>
46 <protocol>
47 USER anonymous\r
48 PASS ftp@example.com\r
49 PWD\r
50 CWD a\r
51 CWD path\r
52 EPRT |1|\r
53 PORT \r
54 TYPE I\r
55 SIZE 212\r
56 RETR 212\r
57 PORT \r
58 SIZE 212\r
59 RETR 212\r
60 QUIT\r
61 </protocol>
62 </verify>
63 </testcase>