xref: /curl/tests/data/test546 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5PASV
6RETR
7multi
8</keywords>
9</info>
10# Server-side
11<reply>
12<data nocheck="yes">
13data
14    to
15      see
16that FTP
17works
18  so does it?
19</data>
20
21<servercmd>
22REPLY RETR 550 the file doesn't exist
23COUNT RETR 1
24REPLY SIZE 500 Can't check for file existence
25COUNT SIZE 1
26</servercmd>
27</reply>
28
29# Client-side
30<client>
31<server>
32ftp
33</server>
34<tool>
35lib533
36</tool>
37<name>
38FTP RETR a non-existing file then a found one using the multi interface
39</name>
40<command>
41ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER
42</command>
43</client>
44
45# Verify data after the test has been "shot"
46<verify>
47<strip>
48QUIT
49</strip>
50<protocol>
51USER anonymous
52PASS ftp@example.com
53PWD
54CWD path
55EPSV
56TYPE I
57SIZE %TESTNUMBER
58RETR %TESTNUMBER
59EPSV
60SIZE %TESTNUMBER
61RETR %TESTNUMBER
62QUIT
63</protocol>
64<stdout>
65data
66    to
67      see
68that FTP
69works
70  so does it?
71</stdout>
72</verify>
73</testcase>
74