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