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