xref: /curl/tests/data/test539 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5</keywords>
6</info>
7
8#
9# Server-side
10<reply>
11<data>
12file contents
13</data>
14
15<data1>
16contents for file number two
17</data1>
18
19<datacheck>
20file contents
21contents for file number two
22</datacheck>
23</reply>
24
25# Client-side
26<client>
27<server>
28ftp
29</server>
30# tool is what to use instead of 'curl'
31<tool>
32lib%TESTNUMBER
33</tool>
34
35<name>
36Two FTP fetches using different CURLOPT_FTP_FILEMETHOD
37</name>
38<command>
39ftp://%HOSTIP:%FTPPORT/path/to/the/file/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/path/to/the/file/%TESTNUMBER0001
40</command>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<strip>
47QUIT
48</strip>
49<protocol>
50USER anonymous
51PASS ftp@example.com
52PWD
53CWD path/to/the/file
54EPSV
55TYPE I
56SIZE %TESTNUMBER
57RETR %TESTNUMBER
58SYST
59CWD /
60EPSV
61SIZE path/to/the/file/%TESTNUMBER0001
62RETR path/to/the/file/%TESTNUMBER0001
63QUIT
64</protocol>
65</verify>
66</testcase>
67