xref: /curl/tests/data/test1801 (revision 3fd80c7b)
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: Tue, 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/%TESTNUMBER --http2
47</command>
48
49</client>
50
51<verify>
52<protocol>
53GET /%TESTNUMBER HTTP/1.1
54Host: %HOSTIP:%HTTPPORT
55User-Agent: curl/%VERSION
56Accept: */*
57Connection: Upgrade, HTTP2-Settings
58Upgrade: %H2CVER
59HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
60
61</protocol>
62# CURLE_HTTP2: Send failure: Broken pipe
63<errorcode>
6416
65</errorcode>
66</verify>
67</testcase>
68