curl/tests/data/test926
Daniel Stenberg 5a9d7c4e68
pop3/smtp: return *WEIRD_SERVER_REPLY when not understood
This leaves the CURLE_RECV_ERROR error code for explicit failure to
receive network data and allows users to better separate the problems.

Ref #8356
Reported-by: Rianov Viacheslav
Closes #8506
2022-03-29 14:01:53 +02:00

45 lines
528 B
Plaintext

<testcase>
<info>
<keywords>
SMTP
VRFY
</keywords>
</info>
#
# Server-side
<reply>
<servercmd>
REPLY VRFY 550 Unknown user
</servercmd>
</reply>
#
# Client-side
<client>
<server>
smtp
</server>
<name>
SMTP unknown user VRFY
</name>
<command>
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
8
</errorcode>
<protocol>
EHLO %TESTNUMBER
VRFY recipient
QUIT
</protocol>
</verify>
</testcase>