tizen 2.3.1 release
[external/curl.git] / tests / data / test881
1 <testcase>
2 <info>
3 <keywords>
4 POP3
5 SASL
6 SASL AUTH DIGEST-MD5
7 SASL AUTH PLAIN
8 SASL DOWNGRADE
9 RFC1734
10 RFC2831
11 RFC5034
12 </keywords>
13 </info>
14
15 #
16 # Server-side
17 <reply>
18 <servercmd>
19 AUTH DIGEST-MD5 PLAIN
20 REPLY "AUTH DIGEST-MD5" + Rubbish
21 REPLY * -ERR AUTH exchange cancelled by client
22 REPLY "AUTH PLAIN" +
23 REPLY dXNlcgB1c2VyAHNlY3JldA== +OK Login successful
24 </servercmd>
25 <data>
26 From: me@somewhere\r
27 To: fake@nowhere\r
28 \r
29 body\r
30 \r
31 --\r
32   yours sincerely\r
33 </data>
34 </reply>
35
36 #
37 # Client-side
38 <client>
39 <server>
40 pop3
41 </server>
42 <features>
43 !SSPI
44 debug
45 crypto
46 </features>
47  <name>
48 POP3 DIGEST-MD5 authentication with SASL downgrade
49  </name>
50  <command>
51 pop3://%HOSTIP:%POP3PORT/881 -u user:secret
52 </command>
53 </client>
54
55 #
56 # Verify data after the test has been "shot"
57 <verify>
58 <protocol>
59 CAPA\r
60 AUTH DIGEST-MD5\r
61 *\r
62 AUTH PLAIN\r
63 dXNlcgB1c2VyAHNlY3JldA==\r
64 RETR 881\r
65 QUIT\r
66 </protocol>
67 </verify>
68 </testcase>