quickjs-tart

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

test412 (951B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 Alt-Svc
      7 trailing-dot
      8 </keywords>
      9 </info>
     10 
     11 #
     12 # Server-side
     13 <reply>
     14 <data>
     15 HTTP/1.1 200 OK
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Content-Length: 6
     18 Connection: close
     19 Content-Type: text/html
     20 Funny-head: yesyes
     21 
     22 -foo-
     23 </data>
     24 </reply>
     25 
     26 #
     27 # Client-side
     28 <client>
     29 <features>
     30 alt-svc
     31 Debug
     32 </features>
     33 <server>
     34 http
     35 </server>
     36 <name>
     37 alt-svc using host name with trailing dot in URL
     38 </name>
     39 <setenv>
     40 # make debug-curl accept Alt-Svc over plain HTTP
     41 CURL_ALTSVC_HTTP="yeah"
     42 </setenv>
     43 <command>
     44 --alt-svc "%LOGDIR/altsvc-%TESTNUMBER" "http://whohoo.:12345/%TESTNUMBER"
     45 </command>
     46 <file name="%LOGDIR/altsvc-%TESTNUMBER">
     47 h1 whohoo 12345 h1 %HOSTIP %HTTPPORT "20290222 22:19:28" 0 0
     48 </file>
     49 
     50 </client>
     51 
     52 #
     53 # Verify data after the test has been "shot"
     54 <verify>
     55 <protocol>
     56 GET /%TESTNUMBER HTTP/1.1
     57 Host: whohoo.:12345
     58 User-Agent: curl/%VERSION
     59 Accept: */*
     60 Alt-Used: %HOSTIP:%HTTPPORT
     61 
     62 </protocol>
     63 </verify>
     64 </testcase>