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>
30HTTP/1.1 200 Mighty fine indeed
31imap: sure hit me
32
33From: me@somewhere
34To: fake@nowhere
35
36body
37
38--
39  yours sincerely
40</datacheck>
41</reply>
42
43#
44# Client-side
45<client>
46<server>
47imap
48http-proxy
49</server>
50<features>
51http
52</features>
53 <name>
54IMAP FETCH tunneled through HTTP proxy
55 </name>
56 <command>
57'imap://imap.1321:%IMAPPORT/1321/;UID=1' -u user:secret -p -x %HOSTIP:%PROXYPORT
58</command>
59</client>
60
61#
62# Verify data after the test has been "shot"
63<verify>
64<strip>
65^User-Agent: curl/.*
66</strip>
67<protocol>
68A001 CAPABILITY
69A002 LOGIN user secret
70A003 SELECT 1321
71A004 FETCH 1 BODY[]
72A005 LOGOUT
73</protocol>
74<proxy>
75CONNECT imap.1321:%IMAPPORT HTTP/1.1
76Host: imap.1321:%IMAPPORT
77User-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
78Proxy-Connection: Keep-Alive
79
80</proxy>
81</verify>
82</testcase>
83