2014-08-03 06:47:21 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
2016-07-24 14:49:47 +08:00
|
|
|
HTTP/2
|
2014-08-03 06:47:21 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 101 Switching!
|
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-08-03 06:47:21 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
|
|
Content-Length: 6
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
lies!
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 101 Switching!
|
|
|
|
</datacheck>
|
|
|
|
|
|
|
|
# listen to the upgrade request!
|
|
|
|
<servercmd>
|
|
|
|
upgrade
|
|
|
|
</servercmd>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<features>
|
2016-07-24 14:49:47 +08:00
|
|
|
http/2
|
2014-08-03 06:47:21 +08:00
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
HTTP/2 upgrade with lying server
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --http2
|
2014-08-03 06:47:21 +08:00
|
|
|
</command>
|
|
|
|
|
|
|
|
</client>
|
|
|
|
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2014-08-03 06:47:21 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2014-08-03 06:47:21 +08:00
|
|
|
Accept: */*
|
|
|
|
Connection: Upgrade, HTTP2-Settings
|
|
|
|
Upgrade: %H2CVER
|
2016-12-10 21:54:59 +08:00
|
|
|
HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
|
2014-08-03 06:47:21 +08:00
|
|
|
|
|
|
|
</protocol>
|
2015-04-01 23:28:58 +08:00
|
|
|
# CURLE_HTTP2: Send failure: Broken pipe
|
2015-03-15 01:17:59 +08:00
|
|
|
<errorcode>
|
2015-04-01 23:28:58 +08:00
|
|
|
16
|
2015-03-15 01:17:59 +08:00
|
|
|
</errorcode>
|
2014-08-03 06:47:21 +08:00
|
|
|
</verify>
|
|
|
|
</testcase>
|