Add test scenario forward-to-http-proxy
[privoxy.git] / tests / cts / forward-to-http-proxy / data / test3
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 200 OK
13 Date: Thu, 22 Jul 2010 11:22:33 GMT
14 Connection: keep-alive
15 Content-Type: text/html
16 Content-Length: 11
17
18 Blafasel 1
19 </data>
20 <data1>
21 HTTP/1.1 200 OK
22 Date: Thu, 22 Jul 2010 11:22:33 GMT
23 Connection: keep-alive
24 Content-Type: text/html
25 Content-Length: 11
26
27 Blafasel 2
28 </data1>
29 <data2>
30 HTTP/1.1 200 OK
31 Date: Thu, 22 Jul 2010 11:22:33 GMT
32 Connection: close
33 Content-Type: text/html
34 X-Control: swsclose
35 Content-Length: 11
36
37 Blafasel 3
38 </data2>
39 </reply>
40
41 <proxy-reply>
42 <data>
43 HTTP/1.1 200 OK
44 Date: Thu, 22 Jul 2010 11:22:33 GMT
45 Connection: keep-alive
46 Content-Type: text/html
47 Content-Length: 11
48
49 Blafasel 1
50 </data>
51 <data1>
52 HTTP/1.1 200 OK
53 Date: Thu, 22 Jul 2010 11:22:33 GMT
54 Connection: keep-alive
55 Content-Type: text/html
56 Content-Length: 11
57
58 Blafasel 2
59 </data1>
60 <data2>
61 HTTP/1.1 200 OK
62 Date: Thu, 22 Jul 2010 11:22:33 GMT
63 Connection: keep-alive
64 Content-Type: text/html
65 Content-Length: 11
66
67 Blafasel 3
68 </data2>
69 </proxy-reply>
70
71 <client>
72 <server>
73 http
74 </server>
75 <name>
76 Two requests forwarded through an HTTP proxy on a reused connection followed by request that needs a new connection
77 </name>
78 <features>
79 proxy
80 </features>
81 <command>
82 http://www.example.org/%TESTNUMBER0000 http://www.example.org/%TESTNUMBER0001 http://www.example.org/%TESTNUMBER0002
83 </command>
84 </client>
85
86 <verify>
87 <protocol>
88 GET http://www.example.org/%TESTNUMBER0000 HTTP/1.1\r
89 Host: www.example.org\r
90 User-Agent: curl/%VERSION\r
91 Accept: */*\r
92 \r
93 GET http://www.example.org/%TESTNUMBER0001 HTTP/1.1\r
94 Host: www.example.org\r
95 User-Agent: curl/%VERSION\r
96 Accept: */*\r
97 \r
98 GET /%TESTNUMBER0002 HTTP/1.1\r
99 Host: www.example.org\r
100 User-Agent: curl/%VERSION\r
101 Accept: */*\r
102 \r
103 </protocol>
104 </verify>
105 </testcase>