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