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: Thu, 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/355 --alt-svc ""
38</command>
39<file name="log/altsvc-355">
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<strip>
48^User-Agent:.*
49</strip>
50<protocol>
51GET /355 HTTP/1.1
52Host: %HOSTIP:%HTTPPORT
53Accept: */*
54
55</protocol>
56</verify>
57</testcase>
58