• 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: Tue, 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: Tue, 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/%TESTNUMBER --http2 http://%HOSTIP:%HTTP2PORT/%TESTNUMBER0001
50</command>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<strip>
57^X-Forwarded-Proto:.*
58^Via:.*
59</strip>
60<protocol>
61GET /%TESTNUMBER HTTP/1.1
62Host: %HOSTIP:%HTTP2PORT
63User-Agent: curl/%VERSION
64Accept: */*
65
66GET /%TESTNUMBER0001 HTTP/1.1
67Host: %HOSTIP:%HTTP2PORT
68User-Agent: curl/%VERSION
69Accept: */*
70
71</protocol>
72<stdout>
73HTTP/1.1 101 Switching Protocols
74Connection: Upgrade
75Upgrade: h2c
76
77HTTP/2 200
78date: Tue, 09 Nov 2010 14:49:00 GMT
79last-modified: Tue, 13 Jun 2000 12:10:00 GMT
80etag: "21025-dc7-39462498"
81accept-ranges: bytes
82content-length: 6
83content-type: text/html
84funny-head: yesyes
85via: 1.1 nghttpx
86
87-foo-
88HTTP/2 200
89date: Tue, 09 Nov 2010 14:49:00 GMT
90content-length: 6
91content-type: text/html
92via: 1.1 nghttpx
93
94-maa-
95</stdout>
96<stripfile>
97s/^server: nghttpx.*\r?\n//
98</stripfile>
99</verify>
100</testcase>
101