File: test646

package info (click to toggle)
curl 8.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 32,016 kB
  • sloc: ansic: 202,975; perl: 20,695; python: 10,293; sh: 6,684; makefile: 1,528; pascal: 239; cpp: 174
file content (109 lines) | stat: -rw-r--r-- 2,623 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
SMTP
MULTIPART
</keywords>
</info>

# Server-side
<reply>
</reply>

# Client-side
<client>
<features>
Mime
</features>
<server>
smtp
</server>
<name>
SMTP multipart using mime API
</name>
<stdin crlf="yes">
From: different
To: another

body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER
--mail-rcpt recipient@example.com
--mail-from sender@example.com
-F "=(;type=multipart/alternative"
-F "= %LTbody%GTThis is the html version%LT/body%GT;headers=X-test1: this is a header;type=text/html;headers=X-test2: this is another header "
-F "=This is the plain text version;headers=@%LOGDIR/headers%TESTNUMBER"
-F "=)"
-F "=@%LOGDIR/test%TESTNUMBER.txt;headers=%LT%LOGDIR/headers%TESTNUMBER"
-H "From: different"
-H "To: another"
-H "Reply-To: %LTfollowup@example.com%GT"
</command>
<file1 name="%LOGDIR/test%TESTNUMBER.txt">
This is an attached file.

It may contain any type of data.
</file1>
<file2 name="%LOGDIR/headers%TESTNUMBER">
# This line is a comment
X-fileheader1: This is a header from a file%SP%CR

# This line is another comment. It precedes a folded header.
X-fileheader2: This is #a
 folded header
</file2>
</client>

# Verify data after the test has been "shot"
<verify>
<strippart>
s/^--------------------------[A-Za-z0-9]*/------------------------------/
s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
</strippart>
<protocol crlf="yes">
EHLO %TESTNUMBER
MAIL FROM:%LTsender@example.com%GT
RCPT TO:%LTrecipient@example.com%GT
DATA
QUIT
</protocol>
<upload>
Content-Type: multipart/mixed; boundary=----------------------------%CR
Mime-Version: 1.0%CR
From: different%CR
To: another%CR
Reply-To: %LTfollowup@example.com%GT%CR
%CR
------------------------------%CR
Content-Type: multipart/alternative; boundary=----------------------------%CR
%CR
------------------------------%CR
Content-Type: text/html%CR
Content-Transfer-Encoding: 8bit%CR
X-test1: this is a header%CR
X-test2: this is another header%CR
%CR
%LTbody%GTThis is the html version%LT/body%GT%CR
------------------------------%CR
X-fileheader1: This is a header from a file%CR
X-fileheader2: This is #a folded header%CR
%CR
This is the plain text version%CR
--------------------------------%CR
%CR
------------------------------%CR
Content-Disposition: attachment; filename="test%TESTNUMBER.txt"%CR
X-fileheader1: This is a header from a file%CR
X-fileheader2: This is #a folded header%CR
%CR
This is an attached file.

It may contain any type of data.
%CR
--------------------------------%CR
.%CR
</upload>
</verify>
</testcase>