blob: d7cc73af4181914a4c41926c95c5d419ab225d5d [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP/2
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data>
12HTTP/1.1 200 Ignored!
13Date: Tue, 09 Nov 2010 14:49:00 GMT
14Server: test-server/fake
15Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
16Content-Length: 6
17Connection: close
18Content-Type: text/html
19
20-foo-
21</data>
22</reply>
23
24# Client-side
25<client>
26<features>
27h2c
28</features>
29<server>
30http
31</server>
32<features>
33http/2
34</features>
35 <name>
36HTTP/2 upgrade refused
37 </name>
38 <command>
39http://%HOSTIP:%HTTPPORT/%TESTNUMBER --http2
40</command>
41
42</client>
43
44<verify>
45<protocol>
46GET /%TESTNUMBER HTTP/1.1
47Host: %HOSTIP:%HTTPPORT
48User-Agent: curl/%VERSION
49Accept: */*
50Connection: Upgrade, HTTP2-Settings
51Upgrade: %H2CVER
52HTTP2-Settings: AAMAAABkAAQCAAAAAAIAAAAA
53
54</protocol>
55</verify>
56</testcase>