mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Update libcurl
This commit is contained in:
parent
20eb0a911a
commit
01a719ee58
3439 changed files with 529259 additions and 41492 deletions
98
Engine/lib/curl/tests/data/test646
Normal file
98
Engine/lib/curl/tests/data/test646
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
SMTP
|
||||
MULTIPART
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
smtp
|
||||
</server>
|
||||
<name>
|
||||
SMTP multipart using mime API
|
||||
</name>
|
||||
<stdin>
|
||||
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 "= <body>This is the html version</body>;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=@log/headers%TESTNUMBER" -F "=)" -F "=@log/test%TESTNUMBER.txt;headers=<log/headers%TESTNUMBER" -H "From: different" -H "To: another" -H "Reply-To: <followup@example.com>"
|
||||
</command>
|
||||
<file1 name="log/test%TESTNUMBER.txt">
|
||||
This is an attached file.
|
||||
|
||||
It may contain any type of data.
|
||||
</file1>
|
||||
<file2 name="log/headers%TESTNUMBER">
|
||||
# This line is a comment
|
||||
X-fileheader1: This is a header from a file
|
||||
|
||||
# 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-z0-9]*/------------------------------/
|
||||
s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
|
||||
</strippart>
|
||||
<protocol>
|
||||
EHLO %TESTNUMBER
|
||||
MAIL FROM:<sender@example.com>
|
||||
RCPT TO:<recipient@example.com>
|
||||
DATA
|
||||
QUIT
|
||||
</protocol>
|
||||
<upload>
|
||||
Content-Type: multipart/mixed; boundary=----------------------------
|
||||
Mime-Version: 1.0
|
||||
From: different
|
||||
To: another
|
||||
Reply-To: <followup@example.com>
|
||||
|
||||
------------------------------
|
||||
Content-Type: multipart/alternative; boundary=----------------------------
|
||||
|
||||
------------------------------
|
||||
Content-Type: text/html
|
||||
Content-Transfer-Encoding: 8bit
|
||||
X-test1: this is a header
|
||||
X-test2: this is another header
|
||||
|
||||
<body>This is the html version</body>
|
||||
------------------------------
|
||||
X-fileheader1: This is a header from a file
|
||||
X-fileheader2: This is #a folded header
|
||||
|
||||
This is the plain text version
|
||||
--------------------------------
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: attachment; filename="test%TESTNUMBER.txt"
|
||||
X-fileheader1: This is a header from a file
|
||||
X-fileheader2: This is #a folded header
|
||||
|
||||
This is an attached file.
|
||||
|
||||
It may contain any type of data.
|
||||
|
||||
--------------------------------
|
||||
.
|
||||
</upload>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue