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