mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:03:31 +03:00
docs: CURLOPT_LOGIN_OPTIONS is a login property
Test case 1982 verifies this Closes #21215
This commit is contained in:
parent
e96cb8b1d8
commit
d2110e7fcf
3 changed files with 63 additions and 1 deletions
53
tests/data/test1982
Normal file
53
tests/data/test1982
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue