xref: /curl/tests/data/test2000 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5PASV
6FILE
7multiprotocol
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<data nocheck="yes">
15data
16    to
17      see
18that FTP
19works
20  so does it?
21</data>
22</reply>
23
24#
25# Client-side
26<client>
27<server>
28ftp
29file
30</server>
31<name>
32FTP RETR followed by FILE
33</name>
34<command option="no-include">
35ftp://%HOSTIP:%FTPPORT/%TESTNUMBER file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt
36</command>
37<file name="%LOGDIR/test%TESTNUMBER.txt">
38foo
39   bar
40bar
41   foo
42moo
43</file>
44</client>
45
46#
47# Verify data after the test has been "shot"
48<verify>
49<strip>
50QUIT
51</strip>
52<protocol>
53USER anonymous
54PASS ftp@example.com
55PWD
56EPSV
57TYPE I
58SIZE %TESTNUMBER
59RETR %TESTNUMBER
60QUIT
61</protocol>
62<stdout>
63data
64    to
65      see
66that FTP
67works
68  so does it?
69foo
70   bar
71bar
72   foo
73moo
74</stdout>
75</verify>
76</testcase>
77