test1321 (1018B)
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 proxy 50 </features> 51 <name> 52 IMAP 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> 63 A001 CAPABILITY 64 A002 LOGIN user secret 65 A003 SELECT %TESTNUMBER 66 A004 FETCH 1 BODY[] 67 A005 LOGOUT 68 </protocol> 69 <proxy> 70 CONNECT imap.%TESTNUMBER:%IMAPPORT HTTP/1.1 71 Host: imap.%TESTNUMBER:%IMAPPORT 72 User-Agent: curl/%VERSION 73 Proxy-Connection: Keep-Alive 74 75 </proxy> 76 </verify> 77 </testcase>