2012-01-03 23:12:58 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
IMAP
|
|
|
|
FETCH
|
2012-03-24 01:31:29 +08:00
|
|
|
HTTP
|
|
|
|
HTTP CONNECT
|
|
|
|
HTTP proxy
|
2012-01-03 23:12:58 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2013-03-16 00:28:32 +08:00
|
|
|
<connect>
|
|
|
|
HTTP/1.1 200 Mighty fine indeed
|
|
|
|
imap: sure hit me
|
|
|
|
|
|
|
|
</connect>
|
2012-01-03 23:12:58 +08:00
|
|
|
<data>
|
2013-03-21 20:42:32 +08:00
|
|
|
From: me@somewhere
|
|
|
|
To: fake@nowhere
|
|
|
|
|
|
|
|
body
|
|
|
|
|
|
|
|
--
|
|
|
|
yours sincerely
|
2012-01-03 23:12:58 +08:00
|
|
|
</data>
|
|
|
|
<datacheck>
|
2013-03-21 20:42:32 +08:00
|
|
|
From: me@somewhere
|
|
|
|
To: fake@nowhere
|
|
|
|
|
|
|
|
body
|
|
|
|
|
|
|
|
--
|
|
|
|
yours sincerely
|
2012-01-03 23:12:58 +08:00
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
imap
|
|
|
|
http-proxy
|
|
|
|
</server>
|
2014-01-25 19:47:04 +08:00
|
|
|
<features>
|
|
|
|
http
|
2019-10-15 04:29:19 +08:00
|
|
|
proxy
|
2014-01-25 19:47:04 +08:00
|
|
|
</features>
|
2012-01-03 23:12:58 +08:00
|
|
|
<name>
|
|
|
|
IMAP FETCH tunneled through HTTP proxy
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
'imap://imap.%TESTNUMBER:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret -p -x %HOSTIP:%PROXYPORT
|
2012-01-03 23:12:58 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2013-02-07 08:18:23 +08:00
|
|
|
A001 CAPABILITY
|
|
|
|
A002 LOGIN user secret
|
2021-03-13 00:38:26 +08:00
|
|
|
A003 SELECT %TESTNUMBER
|
2013-02-24 05:05:19 +08:00
|
|
|
A004 FETCH 1 BODY[]
|
2013-02-07 08:18:23 +08:00
|
|
|
A005 LOGOUT
|
2012-01-03 23:12:58 +08:00
|
|
|
</protocol>
|
|
|
|
<proxy>
|
2021-03-13 00:38:26 +08:00
|
|
|
CONNECT imap.%TESTNUMBER:%IMAPPORT HTTP/1.1
|
|
|
|
Host: imap.%TESTNUMBER:%IMAPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2012-01-03 23:12:58 +08:00
|
|
|
|
|
|
|
</proxy>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|