Add tests for client-header-order with https-inspection enabled
[privoxy.git] / tests / cts / client-header-order-https / data / test332
1 <testcase>
2 <info>
3 <keywords>
4 HTTPS
5 HTTP GET
6 </keywords>
7 </info>
8
9 <reply>
10 <data>
11 HTTP/1.1 200 OK
12 Date: Thu, 22 Jul 2010 11:22:33 GMT
13 Content-Length: 9
14 Connection: close
15
16 Blafasel
17 </data>
18 </reply>
19
20 <proxy-reply>
21 <data>
22 HTTP/1.1 200 Connection established
23
24 HTTP/1.1 200 OK
25 Date: Thu, 22 Jul 2010 11:22:33 GMT
26 Content-Length: 9
27 Connection: close
28
29 Blafasel
30 </data>
31 </proxy-reply>
32
33
34 <client>
35 <server>
36 https
37 </server>
38
39 <name>
40 HTTP client header order through https
41 </name>
42 <command>
43 --insecure -H "Origin: https://www.privoxy.org/" -H "Cache-Control: max-age=315576000" -H "If-Modified-Since: Thu, 07 Jan 2021 22:05:31 GMT" -H "Upgrade-Insecure-Requests: 1" -H "Pragma: no-cache" -H "DNT: 1" -H "Cookie: yolo=123" -H "Referer: https://www.example.org/" -H "Proxy-Connection: keep-alive" -H "Accept-Encoding: gzip" -H "Accept: */*" -H "Host: %HOSTIP:%HTTPSPORT" -H "Accept-Language: en-CA" --user-agent "Client with unsorted headers" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER
44 </command>
45 </client>
46
47 <verify>
48 <protocol>
49 GET /%TESTNUMBER HTTP/1.1\r
50 Host: %HOSTIP:%HTTPSPORT\r
51 User-Agent: Client with unsorted headers\r
52 Accept: */*\r
53 Accept-Language: en-CA\r
54 Accept-Encoding: gzip\r
55 Referer: https://www.example.org/\r
56 Cookie: yolo=123\r
57 DNT: 1\r
58 Pragma: no-cache\r
59 Upgrade-Insecure-Requests: 1\r
60 If-Modified-Since: Thu, 07 Jan 2021 22:05:31 GMT\r
61 Cache-Control: max-age=315576000\r
62 Origin: https://www.privoxy.org/\r
63 \r
64 </protocol>
65 </verify>
66 </testcase>