57cbc098f4170aefc0d99ee512032f006388b02a
[platform/upstream/curl.git] / tests / data / test907
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP AUTH DIGEST-MD5
6 RFC2831
7 RFC4954
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <servercmd>
15 AUTH DIGEST-MD5
16 REPLY AUTH 334 cmVhbG09ImN1cmwiLG5vbmNlPSI1MzAwZDE3YTFkNjk1YmQ0MTFlNGNkZjk2Zjk1NDhjMjNjZWQ2MTc1IixhbGdvcml0aG09bWQ1LXNlc3MscW9wPSJhdXRoIg==
17 REPLY dXNlcm5hbWU9InVzZXIiLHJlYWxtPSJjdXJsIixub25jZT0iNTMwMGQxN2ExZDY5NWJkNDExZTRjZGY5NmY5NTQ4YzIzY2VkNjE3NSIsY25vbmNlPSIxMjM0NTY3OCIsbmM9IjAwMDAwMDAxIixkaWdlc3QtdXJpPSJzbXRwL2N1cmwiLHJlc3BvbnNlPTU3MjBiYjgxZDgwNjI3YmU1ZDExYTAwYTU2M2Q3MGU1 334
18 REPLY  235 Authenticated
19 </servercmd>
20 </reply>
21
22 #
23 # Client-side
24 <client>
25 <server>
26 smtp
27 </server>
28 <features>
29 debug
30 crypto
31 </features>
32  <name>
33 SMTP DIGEST-MD5 authentication
34  </name>
35 <stdin>
36 mail body\r
37 </stdin>
38  <command>
39 smtp://%HOSTIP:%SMTPPORT/907 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
40 </command>
41 </client>
42
43 #
44 # Verify data after the test has been "shot"
45 <verify>
46 <protocol>
47 EHLO 907\r
48 AUTH DIGEST-MD5\r
49 dXNlcm5hbWU9InVzZXIiLHJlYWxtPSJjdXJsIixub25jZT0iNTMwMGQxN2ExZDY5NWJkNDExZTRjZGY5NmY5NTQ4YzIzY2VkNjE3NSIsY25vbmNlPSIxMjM0NTY3OCIsbmM9IjAwMDAwMDAxIixkaWdlc3QtdXJpPSJzbXRwL2N1cmwiLHJlc3BvbnNlPTU3MjBiYjgxZDgwNjI3YmU1ZDExYTAwYTU2M2Q3MGU1\r
50 \r
51 MAIL FROM:<sender@example.com>\r
52 RCPT TO:<recipient@example.com>\r
53 DATA\r
54 QUIT\r
55 </protocol>
56 <upload>
57 mail body\r
58 .\r
59 </upload>
60 </verify>
61 </testcase>