xref: /curl/tests/data/test2503 (revision e61c5eb4)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP/3
6HTTPS
7-w
8%header
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<data nocheck="yes" crlf="yes">
16HTTP/1.1 200 OK
17Date: Tue, 09 Nov 2010 14:49:00 GMT
18Content-Length: 6
19Connection: close
20Content-Type: text/html
21Funny-head: yesyes
22
23-foo-
24</data>
25</reply>
26
27#
28# Client-side
29<client>
30<features>
31http/3
32nghttpx-h3
33headers-api
34</features>
35<server>
36http/3
37</server>
38<name>
39HTTP/3 header-api
40</name>
41<setenv>
42</setenv>
43<command>
44-w '%{header_json}\n' --http3-only --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --resolve localhost:%HTTP3PORT:%HOSTIP https://localhost:%HTTP3PORT/%TESTNUMBER
45</command>
46
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<stdout crlf="yes">
53HTTP/3 200
54date: Tue, 09 Nov 2010 14:49:00 GMT
55content-length: 6
56content-type: text/html
57funny-head: yesyes
58via: 1.1 nghttpx
59
60-foo-
61{"date":["Tue, 09 Nov 2010 14:49:00 GMT"],
62"content-length":["6"],
63"content-type":["text/html"],
64"funny-head":["yesyes"],
65"via":["1.1 nghttpx"]
66}
67</stdout>
68</verify>
69</testcase>
70