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