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