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