test1704 (882B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP/2 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data nocheck="yes"> 14 HTTP/2 101 OK 15 16 HTTP/1.1 200 OK 17 Date: Tue, 09 Nov 2010 14:49:00 GMT 18 Content-Length: 6 19 Connection: close 20 Content-Type: text/html 21 22 -maa- 23 </data> 24 </reply> 25 26 # 27 # Client-side 28 <client> 29 <features> 30 h2c 31 </features> 32 <server> 33 http 34 </server> 35 <name> 36 HTTP/1 doing HTTP/2 Upgrade: getting an HTTP/2 101 response 37 </name> 38 <command> 39 http://%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> 51 GET /%TESTNUMBER HTTP/1.1 52 Host: %HOSTIP:%HTTPPORT 53 User-Agent: curl/%VERSION 54 Accept: */* 55 Connection: Upgrade, HTTP2-Settings 56 Upgrade: h2c 57 HTTP2-Settings: AAMAAABkAAQAAQAAAAIAAAAA 58 59 </protocol> 60 61 # CURLE_WEIRD_SERVER_REPLY (8) 62 <errorcode> 63 8 64 </errorcode> 65 </verify> 66 </testcase>