mirror of
https://github.com/curl/curl.git
synced 2026-08-06 02:26:14 +03:00
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
This commit is contained in:
parent
bc81292ea6
commit
4cd10ee28b
3 changed files with 107 additions and 7 deletions
|
|
@ -131,7 +131,7 @@ test961 test962 test963 test964 test965 test966 test967 test968 test969 \
|
|||
test970 test971 test972 test973 test974 test975 test976 test977 test978 \
|
||||
test979 test980 test981 test982 test983 test984 test985 test986 test987 \
|
||||
test988 test989 test990 test991 test992 test993 test994 test995 test996 \
|
||||
\
|
||||
test997 \
|
||||
test1000 test1001 test1002 test1003 test1004 test1005 test1006 test1007 \
|
||||
test1008 test1009 test1010 test1011 test1012 test1013 test1014 test1015 \
|
||||
test1016 test1017 test1018 test1019 test1020 test1021 test1022 test1023 \
|
||||
|
|
|
|||
47
tests/data/test997
Normal file
47
tests/data/test997
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue