• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
49</features>
50 <name>
51IMAP 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>
65A001 CAPABILITY
66A002 LOGIN user secret
67A003 SELECT 1321
68A004 FETCH 1 BODY[]
69A005 LOGOUT
70</protocol>
71<proxy>
72CONNECT imap.1321:%IMAPPORT HTTP/1.1
73Host: imap.1321:%IMAPPORT
74User-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
75Proxy-Connection: Keep-Alive
76
77</proxy>
78</verify>
79</testcase>
80