quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test355 (765B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 Alt-Svc
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Content-Length: 6
     16 Connection: close
     17 Content-Type: text/html
     18 Funny-head: yesyes
     19 
     20 -foo-
     21 </data>
     22 </reply>
     23 
     24 #
     25 # Client-side
     26 <client>
     27 <features>
     28 alt-svc
     29 </features>
     30 <server>
     31 http
     32 </server>
     33 <name>
     34 load Alt-Svc from file and use
     35 </name>
     36 <command>
     37 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --alt-svc ""
     38 </command>
     39 <file name="%LOGDIR/altsvc-%TESTNUMBER">
     40 h1 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>
     48 GET /%TESTNUMBER HTTP/1.1
     49 Host: %HOSTIP:%HTTPPORT
     50 User-Agent: curl/%VERSION
     51 Accept: */*
     52 
     53 </protocol>
     54 </verify>
     55 </testcase>