xref: /curl/tests/data/test2500 (revision e61c5eb4)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP/3
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data nocheck="yes" crlf="yes">
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
17ETag: "21025-dc7-39462498"
18Accept-Ranges: bytes
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>
32http/3
33nghttpx-h3
34</features>
35<server>
36http/3
37</server>
38<name>
39HTTP/3 GET:
40</name>
41<command>
42--cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --http3 --resolve localhost:%HTTP3PORT:%HOSTIP https://localhost:%HTTP3PORT/%TESTNUMBER
43</command>
44</client>
45
46#
47# Verify data after the test has been "shot"
48<verify>
49<strip>
50^X-Forwarded-Proto:.*
51^Via:.*
52</strip>
53<protocol crlf="yes">
54GET https://localhost:%HTTP3PORT/%TESTNUMBER HTTP/1.1
55Host: localhost:%HTTP3PORT
56User-Agent: curl/%VERSION
57Accept: */*
58
59</protocol>
60<stdout crlf="yes">
61HTTP/3 200
62date: Tue, 09 Nov 2010 14:49:00 GMT
63last-modified: Tue, 13 Jun 2000 12:10:00 GMT
64etag: "21025-dc7-39462498"
65accept-ranges: bytes
66content-length: 6
67content-type: text/html
68funny-head: yesyes
69via: 1.1 nghttpx
70
71-foo-
72</stdout>
73<stripfile>
74s/^server: nghttpx.*\r?\n//
75</stripfile>
76</verify>
77</testcase>
78