1<testcase> 2<info> 3<keywords> 4IMAP 5FETCH 6HTTP 7HTTP CONNECT 8HTTP proxy 9</keywords> 10</info> 11 12# 13# Server-side 14<reply> 15<connect> 16HTTP/1.1 200 Mighty fine indeed 17imap: sure hit me 18 19</connect> 20<data> 21From: me@somewhere 22To: fake@nowhere 23 24body 25 26-- 27 yours sincerely 28</data> 29<datacheck> 30From: me@somewhere 31To: fake@nowhere 32 33body 34 35-- 36 yours sincerely 37</datacheck> 38</reply> 39 40# 41# Client-side 42<client> 43<server> 44imap 45http-proxy 46</server> 47<features> 48http 49proxy 50</features> 51<name> 52IMAP FETCH tunneled through HTTP proxy 53</name> 54<command> 55'imap://imap.%TESTNUMBER:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret -p -x %HOSTIP:%PROXYPORT 56</command> 57</client> 58 59# 60# Verify data after the test has been "shot" 61<verify> 62<protocol> 63A001 CAPABILITY 64A002 LOGIN user secret 65A003 SELECT %TESTNUMBER 66A004 FETCH 1 BODY[] 67A005 LOGOUT 68</protocol> 69<proxy> 70CONNECT imap.%TESTNUMBER:%IMAPPORT HTTP/1.1 71Host: imap.%TESTNUMBER:%IMAPPORT 72User-Agent: curl/%VERSION 73Proxy-Connection: Keep-Alive 74 75</proxy> 76</verify> 77</testcase> 78