Git init
[external/curl.git] / tests / data / test146
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 RETR
6 persistent connection
7 </keywords>
8 </info>
9
10 # Server-side
11 <reply>
12 <data>
13 this is file contents
14 </data>
15 </reply>
16
17 # Client-side
18 <client>
19 <server>
20 ftp
21 </server>
22  <name>
23 persistent FTP with different paths
24  </name>
25  <command>
26 ftp://%HOSTIP:%FTPPORT/first/dir/here/146 ftp://%HOSTIP:%FTPPORT/146
27 </command>
28 </client>
29
30 # Verify data after the test has been "shot"
31 <verify>
32 # Strip all valid kinds of PORT and EPRT that curl can send
33 <strip>
34 ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
35 ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
36 </strip>
37 <protocol>
38 USER anonymous\r
39 PASS ftp@example.com\r
40 PWD\r
41 CWD first\r
42 CWD dir\r
43 CWD here\r
44 EPSV\r
45 TYPE I\r
46 SIZE 146\r
47 RETR 146\r
48 CWD /\r
49 EPSV\r
50 SIZE 146\r
51 RETR 146\r
52 QUIT\r
53 </protocol>
54 </verify>
55 </testcase>