docs: CURLOPT_LOGIN_OPTIONS is a login property

Test case 1982 verifies this

Closes #21215
This commit is contained in:
Daniel Stenberg 2026-04-04 11:21:37 +02:00
parent e96cb8b1d8
commit d2110e7fcf
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 63 additions and 1 deletions

View file

@ -241,7 +241,7 @@ test1941 test1942 test1943 test1944 test1945 test1946 test1947 test1948 \
test1955 test1956 test1957 test1958 test1959 test1960 test1964 test1965 \
\
test1970 test1971 test1972 test1973 test1974 test1975 test1976 test1977 \
test1978 test1979 test1980 test1981 \
test1978 test1979 test1980 test1981 test1982 \
\
test2000 test2001 test2002 test2003 test2004 test2005 test2006 test2007 \
test2008 \

53
tests/data/test1982 Normal file
View file

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
IMAP
Clear Text
FETCH
connection reuse
options
</keywords>
</info>
# Server-side
<reply>
<servercmd>
REPLY "LOGIN user.one secret" A002 OK LOGIN completed
</servercmd>
<data crlf="yes">
From: me@somewhere
To: fake@nowhere
body
--
yours sincerely
</data>
</reply>
# Client-side
<client>
<server>
imap
</server>
<name>
IMAP two requests, change options for the second
</name>
<command>
'imap://user.one:secret@%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' 'imap://user.one:secret;AUTH=XOAUTH2@%HOSTIP:%IMAPPORT/%TESTNUMBER/;UID=2'
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol crlf="yes">
A001 CAPABILITY
A002 LOGIN user.one secret
A003 SELECT %TESTNUMBER
A004 FETCH 1 BODY[]
A005 UID FETCH 2 BODY[]
A006 LOGOUT
</protocol>
</verify>
</testcase>