test1700 (1622B)
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/1.1 200 OK 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Server: test-server/fake 17 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 18 ETag: "21025-dc7-39462498" 19 Accept-Ranges: bytes 20 Content-Length: 6 21 Connection: close 22 Content-Type: text/html 23 Funny-head: yesyes 24 25 -foo- 26 </data> 27 <data1> 28 HTTP/1.1 200 OK 29 Date: Tue, 09 Nov 2010 14:49:00 GMT 30 Content-Length: 6 31 Connection: close 32 Content-Type: text/html 33 34 -maa- 35 </data1> 36 </reply> 37 38 # 39 # Client-side 40 <client> 41 <features> 42 h2c 43 </features> 44 <server> 45 http/2 46 </server> 47 <name> 48 HTTP/2 GET with Upgrade: 49 </name> 50 <command> 51 http://%HOSTIP:%HTTP2PORT/%TESTNUMBER --http2 http://%HOSTIP:%HTTP2PORT/%TESTNUMBER0001 52 </command> 53 </client> 54 55 # 56 # Verify data after the test has been "shot" 57 <verify> 58 <strip> 59 ^X-Forwarded-Proto:.* 60 ^Via:.* 61 </strip> 62 <protocol> 63 GET /%TESTNUMBER HTTP/1.1 64 Host: %HOSTIP:%HTTP2PORT 65 User-Agent: curl/%VERSION 66 Accept: */* 67 68 GET /%TESTNUMBER0001 HTTP/1.1 69 Host: %HOSTIP:%HTTP2PORT 70 User-Agent: curl/%VERSION 71 Accept: */* 72 73 </protocol> 74 <stdout> 75 HTTP/1.1 101 Switching Protocols 76 Connection: Upgrade 77 Upgrade: h2c 78 79 HTTP/2 200 80 date: Tue, 09 Nov 2010 14:49:00 GMT 81 last-modified: Tue, 13 Jun 2000 12:10:00 GMT 82 etag: "21025-dc7-39462498" 83 accept-ranges: bytes 84 content-length: 6 85 content-type: text/html 86 funny-head: yesyes 87 via: 1.1 nghttpx 88 89 -foo- 90 HTTP/2 200 91 date: Tue, 09 Nov 2010 14:49:00 GMT 92 content-length: 6 93 content-type: text/html 94 via: 1.1 nghttpx 95 96 -maa- 97 </stdout> 98 <stripfile> 99 s/^server: nghttpx.*\r?\n// 100 </stripfile> 101 </verify> 102 </testcase>