xref: /curl/tests/data/test981 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4IMAP
5STARTTLS
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<servercmd>
13CAPA STARTTLS
14REPLY STARTTLS A002 BAD currently unavailable\r\nA003 OK Authenticated\r\nA004 OK Accepted
15REPLY LOGIN A003 BAD Authentication credentials invalid
16</servercmd>
17</reply>
18
19#
20# Client-side
21<client>
22<features>
23SSL
24</features>
25<server>
26imap
27</server>
28<name>
29IMAP STARTTLS pipelined server response
30</name>
31<command>
32imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -u user:secret --ssl
33</command>
34<file name="%LOGDIR/upload%TESTNUMBER">
35Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
36From: Fred Foobar <foobar@example.COM>
37Subject: afternoon meeting
38To: joe@example.com
39Message-Id: <B27397-0100000@example.COM>
40MIME-Version: 1.0
41Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
42
43Hello Joe, do you think we can meet at 3:30 tomorrow?
44</file>
45</client>
46
47#
48# Verify data after the test has been "shot"
49<verify>
50# 8 is CURLE_WEIRD_SERVER_REPLY
51<errorcode>
528
53</errorcode>
54<protocol>
55A001 CAPABILITY
56A002 STARTTLS
57</protocol>
58</verify>
59</testcase>
60