1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 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</reply> 28 29# 30# Client-side 31<client> 32<server> 33http 34http/2 35</server> 36 <name> 37HTTP/2 POST with Upgrade: 38 </name> 39 <command> 40http://%HOSTIP:%HTTP2PORT/1701 --http2 -d "datatosend" 41</command> 42</client> 43 44# 45# Verify data after the test has been "shot" 46<verify> 47<strip> 48^User-Agent:.* 49^X-Forwarded-Proto:.* 50^Via:.* 51</strip> 52<protocol nonewline="yes"> 53POST /1701 HTTP/1.1 54Host: %HOSTIP:%HTTP2PORT 55Accept: */* 56Content-Length: 10 57Content-Type: application/x-www-form-urlencoded 58 59datatosend 60</protocol> 61<stdout> 62HTTP/1.1 101 Switching Protocols 63Connection: Upgrade 64Upgrade: h2c 65 66HTTP/2 200 67date: Thu, 09 Nov 2010 14:49:00 GMT 68last-modified: Tue, 13 Jun 2000 12:10:00 GMT 69etag: "21025-dc7-39462498" 70accept-ranges: bytes 71content-length: 6 72content-type: text/html 73funny-head: yesyes 74server: cut-out 75via: 1.1 nghttpx 76 77-foo- 78</stdout> 79<stripfile> 80s/^server:.*/server: cut-out 81/ 82</stripfile> 83</verify> 84</testcase> 85