• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
29h2c
30SSL
31</features>
32<server>
33http
34http/2
35</server>
36 <name>
37HTTP/2 GET
38 </name>
39<setenv>
40</setenv>
41 <command>
42-k --http2 "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER" -d "moo"
43</command>
44
45</client>
46
47#
48# Verify data after the test has been "shot"
49<verify>
50<stdout>
51HTTP/2 201
52date: Tue, 09 Nov 2010 14:49:00 GMT
53content-length: 0
54funny-head: yesyes
55server: nghttpx
56via: 1.1 nghttpx
57
58</stdout>
59<protocol nonewline="yes">
60POST /2401 HTTP/1.1
61Host: %HOSTIP:%HTTP2TLSPORT
62User-Agent: curl/%VERSION
63Accept: */*
64Content-Length: 3
65Content-Type: application/x-www-form-urlencoded
66X-Forwarded-Proto: https
67Via: 2 nghttpx
68
69moo
70</protocol>
71</verify>
72</testcase>
73