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