xref: /curl/tests/data/test986 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4FTP
5STARTTLS
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<servercmd>
13REPLY welcome 230 Welcome
14REPLY AUTH 500 unknown command
15</servercmd>
16</reply>
17
18# Client-side
19<client>
20<features>
21SSL
22</features>
23<server>
24ftp
25</server>
26<name>
27FTP require STARTTLS while preauthenticated
28</name>
29<file name="%LOGDIR/test%TESTNUMBER.txt">
30data
31    to
32      see
33that FTPS
34works
35  so does it?
36</file>
37<command>
38--ssl-reqd --ftp-ssl-control ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt -u user:secret
39</command>
40</client>
41
42# Verify data after the test has been "shot"
43<verify>
44# 64 is CURLE_USE_SSL_FAILED
45<errorcode>
4664
47</errorcode>
48<protocol>
49AUTH SSL
50AUTH TLS
51</protocol>
52</verify>
53</testcase>
54