• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP/2
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data>
12HTTP/1.1 101 Switching!
13
14HTTP/1.1 200 OK
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
18Content-Length: 6
19Content-Type: text/html
20
21lies!
22</data>
23
24<datacheck>
25HTTP/1.1 101 Switching!
26</datacheck>
27
28# listen to the upgrade request!
29<servercmd>
30upgrade
31</servercmd>
32</reply>
33
34# Client-side
35<client>
36<server>
37http
38</server>
39<features>
40http/2
41</features>
42 <name>
43HTTP/2 upgrade with lying server
44 </name>
45 <command>
46http://%HOSTIP:%HTTPPORT/1801 --http2
47</command>
48
49</client>
50
51<verify>
52<strip>
53^User-Agent:.*
54</strip>
55<protocol>
56GET /1801 HTTP/1.1
57Host: %HOSTIP:%HTTPPORT
58Accept: */*
59Connection: Upgrade, HTTP2-Settings
60Upgrade: %H2CVER
61HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
62
63</protocol>
64# CURLE_HTTP2: Send failure: Broken pipe
65<errorcode>
6616
67</errorcode>
68</verify>
69</testcase>
70