mirror of
https://github.com/curl/curl.git
synced 2026-04-14 00:51:42 +08:00
test1711: send a >64K mail with SMTP
A failed attempt to reproduce #18798 Closes #18861
This commit is contained in:
parent
aae18c4bdc
commit
a80dcb04e3
@ -228,7 +228,7 @@ test1670 test1671 \
|
||||
test1680 test1681 test1682 test1683 \
|
||||
\
|
||||
test1700 test1701 test1702 test1703 test1704 test1705 test1706 test1707 \
|
||||
test1708 test1709 test1710 \
|
||||
test1708 test1709 test1710 test1711 \
|
||||
\
|
||||
test1800 test1801 \
|
||||
\
|
||||
|
||||
51
tests/data/test1711
Normal file
51
tests/data/test1711
Normal file
@ -0,0 +1,51 @@
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
SMTP
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
smtp
|
||||
</server>
|
||||
<name>
|
||||
Send >64K over SMTP
|
||||
</name>
|
||||
<file name="%LOGDIR/email%TESTNUMBER">
|
||||
From: different
|
||||
To: another
|
||||
|
||||
%repeat[5000 x test in body... ]%
|
||||
</file>
|
||||
<command>
|
||||
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -T %LOGDIR/email%TESTNUMBER
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
EHLO %TESTNUMBER
|
||||
MAIL FROM:<sender@example.com>
|
||||
RCPT TO:<recipient@example.com>
|
||||
DATA
|
||||
QUIT
|
||||
</protocol>
|
||||
<upload>
|
||||
From: different
|
||||
To: another
|
||||
|
||||
%repeat[5000 x test in body... ]%
|
||||
.
|
||||
</upload>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Reference in New Issue
Block a user