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