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