1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP/2 7HTTPS 8-w 9%header 10</keywords> 11</info> 12 13# 14# Server-side 15<reply> 16<data nocheck="yes" crlf="yes"> 17HTTP/1.1 200 OK 18Date: Tue, 09 Nov 2010 14:49:00 GMT 19Content-Length: 6 20Connection: close 21Content-Type: text/html 22Funny-head: yesyes 23 24-foo- 25</data> 26</reply> 27 28# 29# Client-side 30<client> 31<features> 32http/2 33SSL 34headers-api 35</features> 36<server> 37http/2 38</server> 39<name> 40HTTP/2 GET using %{header_json} 41</name> 42<setenv> 43</setenv> 44<command> 45-k --http2 -w '%{header_json}\n' "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER" 46</command> 47 48</client> 49 50# 51# Verify data after the test has been "shot" 52<verify> 53<stdout crlf="yes"> 54HTTP/2 200 55date: Tue, 09 Nov 2010 14:49:00 GMT 56content-length: 6 57content-type: text/html 58funny-head: yesyes 59server: nghttpx 60via: 1.1 nghttpx 61 62-foo- 63{"date":["Tue, 09 Nov 2010 14:49:00 GMT"], 64"content-length":["6"], 65"content-type":["text/html"], 66"funny-head":["yesyes"], 67"server":["nghttpx"], 68"via":["1.1 nghttpx"] 69} 70</stdout> 71</verify> 72</testcase> 73