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