• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP/2
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
18ETag: "21025-dc7-39462498"
19Accept-Ranges: bytes
20Content-Length: 6
21Connection: close
22Content-Type: text/html
23Funny-head: yesyes
24
25-foo-
26</data>
27<data1>
28HTTP/1.1 200 OK
29Date: Thu, 09 Nov 2010 14:49:00 GMT
30Content-Length: 6
31Connection: close
32Content-Type: text/html
33
34-maa-
35</data1>
36</reply>
37
38#
39# Client-side
40<client>
41<server>
42http
43http/2
44</server>
45 <name>
46HTTP/2 GET with Upgrade:
47 </name>
48 <command>
49http://%HOSTIP:%HTTP2PORT/1700 --http2 http://%HOSTIP:%HTTP2PORT/17000001
50</command>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<strip>
57^User-Agent:.*
58^X-Forwarded-Proto:.*
59^Via:.*
60</strip>
61<protocol>
62GET /1700 HTTP/1.1
63Host: %HOSTIP:%HTTP2PORT
64Accept: */*
65
66GET /17000001 HTTP/1.1
67Host: %HOSTIP:%HTTP2PORT
68Accept: */*
69
70</protocol>
71<stdout>
72HTTP/1.1 101 Switching Protocols
73Connection: Upgrade
74Upgrade: h2c
75
76HTTP/2 200
77date: Thu, 09 Nov 2010 14:49:00 GMT
78last-modified: Tue, 13 Jun 2000 12:10:00 GMT
79etag: "21025-dc7-39462498"
80accept-ranges: bytes
81content-length: 6
82content-type: text/html
83funny-head: yesyes
84server: cut-out
85via: 1.1 nghttpx
86
87-foo-
88HTTP/2 200
89date: Thu, 09 Nov 2010 14:49:00 GMT
90content-length: 6
91content-type: text/html
92server: cut-out
93via: 1.1 nghttpx
94
95-maa-
96</stdout>
97<stripfile>
98s/^server:.*/server: cut-out
99/
100</stripfile>
101</verify>
102</testcase>
103