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