• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>
32h2c
33SSL
34headers-api
35</features>
36<server>
37http
38http/2
39</server>
40<name>
41HTTP/2 GET
42</name>
43<setenv>
44</setenv>
45<command>
46-k --http2 -w '%{header_json}\n' "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER"
47</command>
48
49</client>
50
51#
52# Verify data after the test has been "shot"
53<verify>
54<stdout crlf="yes">
55HTTP/2 200
56date: Tue, 09 Nov 2010 14:49:00 GMT
57content-length: 6
58content-type: text/html
59funny-head: yesyes
60server: nghttpx
61via: 1.1 nghttpx
62
63-foo-
64{"date":["Tue, 09 Nov 2010 14:49:00 GMT"],
65"content-length":["6"],
66"content-type":["text/html"],
67"funny-head":["yesyes"],
68"server":["nghttpx"],
69"via":["1.1 nghttpx"]
70}
71</stdout>
72</verify>
73</testcase>
74