Add test scenario forward-to-http-proxy
[privoxy.git] / tests / cts / forward-to-http-proxy / data / test2
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: close
24 Content-Type: text/html
25 X-Control: swsclose
26 Content-Length: 11
27
28 Blafasel 2
29 </data1>
30 </reply>
31
32 <proxy-reply>
33 <data>
34 HTTP/1.1 200 OK
35 Date: Thu, 22 Jul 2010 11:22:33 GMT
36 Connection: keep-alive
37 Content-Type: text/html
38 Content-Length: 11
39
40 Blafasel 1
41 </data>
42 <data1>
43 HTTP/1.1 200 OK
44 Date: Thu, 22 Jul 2010 11:22:33 GMT
45 Connection: close
46 Content-Type: text/html
47 X-Control: swsclose
48 Content-Length: 11
49
50 Blafasel 2
51 </data1>
52 </proxy-reply>
53
54 <client>
55 <server>
56 http
57 </server>
58 <name>
59 Two requests forwarded through an HTTP proxy on a reused connection
60 </name>
61 <features>
62 proxy
63 </features>
64 <command>
65 http://www.example.org/%TESTNUMBER0000 http://www.example.org/%TESTNUMBER0001
66 </command>
67 </client>
68
69 <verify>
70 <protocol>
71 GET http://www.example.org/%TESTNUMBER0000 HTTP/1.1\r
72 Host: www.example.org\r
73 User-Agent: curl/%VERSION\r
74 Accept: */*\r
75 \r
76 GET http://www.example.org/%TESTNUMBER0001 HTTP/1.1\r
77 Host: www.example.org\r
78 User-Agent: curl/%VERSION\r
79 Accept: */*\r
80 \r
81 </protocol>
82 </verify>
83 </testcase>