Revert "Imported Upstream version 7.44.0"
[platform/upstream/curl.git] / tests / data / test1801
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 http2
6 </keywords>
7 </info>
8
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 101 Switching!
13
14 HTTP/1.1 200 OK
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake
17 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
18 Content-Length: 6
19 Content-Type: text/html
20
21 lies!
22 </data>
23
24 <datacheck>
25 HTTP/1.1 101 Switching!
26
27 </datacheck>
28
29 # listen to the upgrade request!
30 <servercmd>
31 upgrade
32 </servercmd>
33 </reply>
34
35 # Client-side
36 <client>
37 <server>
38 http
39 </server>
40 <features>
41 http2
42 </features>
43  <name>
44 HTTP/2 upgrade with lying server
45  </name>
46  <command>
47 http://%HOSTIP:%HTTPPORT/1801 --http2
48 </command>
49
50 </client>
51
52 <verify>
53 <strip>
54 ^User-Agent:.*
55 </strip>
56 <protocol>
57 GET /1801 HTTP/1.1\r
58 Host: %HOSTIP:%HTTPPORT\r
59 Accept: */*\r
60 Connection: Upgrade, HTTP2-Settings\r
61 Upgrade: %H2CVER\r
62 HTTP2-Settings: AAMAAABkAAQAAP__\r
63 \r
64 </protocol>
65 </verify>
66 </testcase>