1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6HTTP/2 7HTTPS 8</keywords> 9</info> 10 11# 12# Server-side 13<reply> 14<data nocheck="yes"> 15HTTP/1.1 201 OK 16Date: Tue, 09 Nov 2010 14:49:00 GMT 17Connection: close 18Content-Length: 0 19Funny-head: yesyes 20 21</data> 22</reply> 23 24# 25# Client-side 26<client> 27<features> 28Debug 29http/2 30SSL 31</features> 32<server> 33http/2 34</server> 35<name> 36HTTP/2 POST over HTTPS 37</name> 38<setenv> 39</setenv> 40<command> 41-k --http2 "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER" -d "moo" 42</command> 43 44</client> 45 46# 47# Verify data after the test has been "shot" 48<verify> 49<stdout> 50HTTP/2 201 51date: Tue, 09 Nov 2010 14:49:00 GMT 52content-length: 0 53funny-head: yesyes 54server: nghttpx 55via: 1.1 nghttpx 56 57</stdout> 58<protocol nonewline="yes"> 59POST /%TESTNUMBER HTTP/1.1 60Host: %HOSTIP:%HTTP2TLSPORT 61User-Agent: curl/%VERSION 62Accept: */* 63Content-Length: 3 64Content-Type: application/x-www-form-urlencoded 65X-Forwarded-Proto: https 66Via: 2 nghttpx 67 68moo 69</protocol> 70</verify> 71</testcase> 72