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<datacheck mode="text">
16file contents
17total 20
18drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
19drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
20drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
21-r--r--r--   1 0        1             35 Jul 16  1996 README
22lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
23dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
24drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
25dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
26drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
27dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
28</datacheck>
29</reply>
30
31# Client-side
32<client>
33<server>
34ftp
35</server>
36# tool is what to use instead of 'curl'
37<tool>
38lib539
39</tool>
40
41 <name>
42Two FTP fetches using different CURLOPT_FTP_FILEMETHOD
43 </name>
44 <command>
45ftp://%HOSTIP:%FTPPORT/path/to/the/file/539
46</command>
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<protocol>
53USER anonymous
54PASS ftp@example.com
55PWD
56CWD path/to/the/file
57EPSV
58TYPE I
59SIZE 539
60RETR 539
61SYST
62CWD /
63EPSV
64TYPE A
65LIST path/to/the/file/539./
66QUIT
67</protocol>
68</verify>
69</testcase>
70