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