Imported Upstream version 7.48.0
[platform/upstream/curl.git] / tests / data / test1319
1 <testcase>
2 <info>
3 <keywords>
4 POP3
5 RETR
6 HTTP
7 HTTP CONNECT
8 HTTP proxy
9 </keywords>
10 </info>
11 #
12 # Server-side
13 <reply>
14
15 <connect>
16 HTTP/1.1 200 Mighty fine indeed\r
17 pop3: sure hit me\r
18 \r
19 </connect>
20
21 # When doing LIST, we get the default list output hard-coded in the test
22 # FTP server
23 <data>
24 From: me@somewhere
25 To: fake@nowhere
26
27 body
28
29 --
30   yours sincerely\r
31 </data>
32
33 <datacheck>
34 HTTP/1.1 200 Mighty fine indeed\r
35 pop3: sure hit me\r
36 \r
37 From: me@somewhere
38 To: fake@nowhere
39
40 body
41
42 --
43   yours sincerely\r
44 </datacheck>
45 </reply>
46
47 #
48 # Client-side
49 <client>
50 <server>
51 pop3
52 http-proxy
53 </server>
54 <features>
55 http
56 </features>
57  <name>
58 POP3 fetch tunneled through HTTP proxy
59  </name>
60  <command>
61 pop3://pop.1319:%POP3PORT/1319 -p -x %HOSTIP:%PROXYPORT -u user:secret
62 </command>
63 </client>
64
65 #
66 # Verify data after the test has been "shot"
67 <verify>
68 <strip>
69 ^User-Agent:
70 </strip>
71 <protocol>
72 CAPA\r
73 USER user\r
74 PASS secret\r
75 RETR 1319\r
76 QUIT\r
77 </protocol>
78 <proxy>
79 CONNECT pop.1319:%POP3PORT HTTP/1.1\r
80 Host: pop.1319:%POP3PORT\r
81 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
82 \r
83 </proxy>
84 </verify>
85 </testcase>