Add client-header-order tests
[privoxy.git] / tests / cts / client-header-order / data / test333
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
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
15 Blafasel
16 </data>
17 </reply>
18
19
20 <client>
21 <server>
22 http
23 </server>
24 <name>
25 HTTP client header order 2
26 </name>
27 <command>
28 -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 "DNT: 1" -H "Pragma: no-cache" -H "Cookie: yolo=123" -H "Referer: https://www.example.org/" -H "Accept-Encoding: gzip" -H "Proxy-Connection: keep-alive" -H "Accept: */*" -H "Accept-Language: en-CA" -H "Host: %HOSTIP:%HTTPPORT" --user-agent "Client with unsorted headers" http://%HOSTIP:%HTTPPORT/%TESTNUMBER
29 </command>
30 </client>
31
32 <verify>
33 <protocol>
34 GET /%TESTNUMBER HTTP/1.1\r
35 Host: %HOSTIP:%HTTPPORT\r
36 User-Agent: Client with unsorted headers\r
37 Accept: */*\r
38 Accept-Language: en-CA\r
39 Accept-Encoding: gzip\r
40 Referer: https://www.example.org/\r
41 Cookie: yolo=123\r
42 DNT: 1\r
43 Connection: close\r
44 Pragma: no-cache\r
45 Upgrade-Insecure-Requests: 1\r
46 If-Modified-Since: Thu, 07 Jan 2021 22:05:31 GMT\r
47 Cache-Control: max-age=315576000\r
48 Origin: https://www.privoxy.org/\r
49 \r
50 </protocol>
51 </verify>
52 </testcase>