Imported Upstream version 7.48.0
[platform/upstream/curl.git] / tests / data / test403
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 FTPS
6 PASV
7 LIST
8 CCC
9 FAILURE
10 </keywords>
11 </info>
12 #
13 # Server-side
14 <reply>
15 # When doing LIST, we get the default list output hard-coded in the test
16 # FTPS server
17 <datacheck mode="text">
18 total 20
19 drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
20 drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
21 drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
22 -r--r--r--   1 0        1             35 Jul 16  1996 README
23 lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
24 dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
25 drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
26 dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
27 drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
28 dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
29 </datacheck>
30 </reply>
31
32 #
33 # Client-side
34 <client>
35 <features>
36 SSL
37 </features>
38 <server>
39 ftps
40 </server>
41  <name>
42 FTPS with CCC not supported by server
43  </name>
44  <command>
45 -k --ftp-ssl-control --ftp-ssl-ccc ftps://%HOSTIP:%FTPSPORT/
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 PBSZ 0\r
56 PROT C\r
57 CCC\r
58 PWD\r
59 EPSV\r
60 TYPE A\r
61 LIST\r
62 QUIT\r
63 </protocol>
64 </verify>
65 </testcase>