1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP/2 7</keywords> 8</info> 9 10# 11# Server-side 12<reply> 13<data nocheck="yes"> 14HTTP/2 101 OK 15 16HTTP/1.1 200 OK 17Date: Tue, 09 Nov 2010 14:49:00 GMT 18Content-Length: 6 19Connection: close 20Content-Type: text/html 21 22-maa- 23</data> 24</reply> 25 26# 27# Client-side 28<client> 29<features> 30h2c 31</features> 32<server> 33http 34</server> 35<name> 36HTTP/1 doing HTTP/2 Upgrade: getting a HTTP/2 101 response 37</name> 38<command> 39http://%HOSTIP:%HTTPPORT/%TESTNUMBER --http2 40</command> 41</client> 42 43# 44# Verify data after the test has been "shot" 45<verify> 46<strip> 47^X-Forwarded-Proto:.* 48^Via:.* 49</strip> 50<protocol> 51GET /%TESTNUMBER HTTP/1.1 52Host: %HOSTIP:%HTTPPORT 53User-Agent: curl/%VERSION 54Accept: */* 55Connection: Upgrade, HTTP2-Settings 56Upgrade: h2c 57HTTP2-Settings: AAMAAABkAAQAAQAAAAIAAAAA 58 59</protocol> 60 61# CURLE_WEIRD_SERVER_REPLY (8) 62<errorcode> 638 64</errorcode> 65</verify> 66</testcase> 67