xref: /curl/tests/data/test355 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5Alt-Svc
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Content-Length: 6
16Connection: close
17Content-Type: text/html
18Funny-head: yesyes
19
20-foo-
21</data>
22</reply>
23
24#
25# Client-side
26<client>
27<features>
28alt-svc
29</features>
30<server>
31http
32</server>
33<name>
34load Alt-Svc from file and use
35</name>
36<command>
37http://%HOSTIP:%HTTPPORT/%TESTNUMBER --alt-svc ""
38</command>
39<file name="%LOGDIR/altsvc-%TESTNUMBER">
40h1 example.com 80 h1 %HOSTIP %HTTPPORT "20290222 22:19:28" 0 0
41</file>
42</client>
43
44#
45# Verify data after the test has been "shot"
46<verify>
47<protocol>
48GET /%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50User-Agent: curl/%VERSION
51Accept: */*
52
53</protocol>
54</verify>
55</testcase>
56