Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test1321
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\r
17 imap: sure hit me\r
18 \r
19 </connect>
20 <data>
21 From: me@somewhere\r
22 To: fake@nowhere\r
23 \r
24 body\r
25 \r
26 --\r
27   yours sincerely\r
28 </data>
29 <datacheck>
30 HTTP/1.1 200 Mighty fine indeed\r
31 imap: sure hit me\r
32 \r
33 From: me@somewhere\r
34 To: fake@nowhere\r
35 \r
36 body\r
37 \r
38 --\r
39   yours sincerely\r
40 </datacheck>
41 </reply>
42
43 #
44 # Client-side
45 <client>
46 <server>
47 imap
48 http-proxy
49 </server>
50 <features>
51 http
52 </features>
53  <name>
54 IMAP 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>
68 A001 CAPABILITY\r
69 A002 LOGIN user secret\r
70 A003 SELECT 1321\r
71 A004 FETCH 1 BODY[]\r
72 A005 LOGOUT\r
73 </protocol>
74 <proxy>
75 CONNECT imap.1321:%IMAPPORT HTTP/1.1\r
76 Host: imap.1321:%IMAPPORT\r
77 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\r
78 Proxy-Connection: Keep-Alive\r
79 \r
80 </proxy>
81 </verify>
82 </testcase>