curl/tests/data/test997
Stefan Eissing 4cd10ee28b
POP3: fix multi-line responses
Some POP3 commands are multi-line, e.g. have responses terminated by a
last line with '.', but some are not. Define the known command
properties and fix response handling.

Add test case for STAT.

Fixes #14677
Reported-by: ralfjunker on github
Closes #14707
2024-08-30 15:38:25 +02:00

48 lines
510 B
Plaintext

<testcase>
<info>
<keywords>
POP3
Clear Text
STAT
CUSTOMREQUEST
RFC2449
</keywords>
</info>
#
# Server-side
<reply>
<servercmd>
CAPA TOP USER
</servercmd>
<data>
</data>
</reply>
#
# Client-side
<client>
<server>
pop3
</server>
<name>
POP3 retrieve STAT (CUSTOMREQUEST)
</name>
<command>
pop3://%HOSTIP:%POP3PORT -u user:secret -X 'STAT'
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
CAPA
USER user
PASS secret
STAT
QUIT
</protocol>
</verify>
</testcase>