e9437ce5ed50e9e565c3eb3cd88887df2412a802
[platform/upstream/curl.git] / tests / data / test825
1 <testcase>
2 <info>
3 <keywords>
4 IMAP
5 IMAP AUTH PLAIN
6 SASL-IR
7 RFC4616
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <servercmd>
15 AUTH PLAIN
16 CAPA SASL-IR
17 REPLY AUTHENTICATE A002 OK AUTHENTICATE completed
18 </servercmd>
19 <data>
20 From: me@somewhere\r
21 To: fake@nowhere\r
22 \r
23 body\r
24 \r
25 --\r
26   yours sincerely\r
27 </data>
28 </reply>
29
30 #
31 # Client-side
32 <client>
33 <server>
34 imap
35 </server>
36  <name>
37 IMAP plain authentication with initial response
38  </name>
39  <command>
40 'imap://%HOSTIP:%IMAPPORT/825/;UID=1' -u user:secret
41 </command>
42 </client>
43
44 #
45 # Verify data after the test has been "shot"
46 <verify>
47 <protocol>
48 A001 CAPABILITY\r
49 A002 AUTHENTICATE PLAIN dXNlcgB1c2VyAHNlY3JldA==\r
50 A003 SELECT 825\r
51 A004 FETCH 1 BODY[]\r
52 A005 LOGOUT\r
53 </protocol>
54 </verify>
55 </testcase>