quickjs-tart

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

test1324 (840B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 IPv6
      7 --resolve
      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 Server: test-server/fake
     18 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     19 ETag: "21025-dc7-39462498"
     20 Accept-Ranges: bytes
     21 Content-Length: 6
     22 Connection: close
     23 Content-Type: text/html
     24 Funny-head: yesyes
     25 
     26 -foo-
     27 </data>
     28 </reply>
     29 
     30 #
     31 # Client-side
     32 <client>
     33 <features>
     34 http
     35 IPv6
     36 </features>
     37 <server>
     38 http-ipv6
     39 </server>
     40 <name>
     41 HTTP with --resolve and [ipv6address]
     42 </name>
     43 <command>
     44 --resolve example.com:%HTTP6PORT:%HOST6IP http://example.com:%HTTP6PORT/%TESTNUMBER
     45 </command>
     46 </client>
     47 
     48 #
     49 # Verify data after the test has been "shot"
     50 <verify>
     51 <protocol>
     52 GET /%TESTNUMBER HTTP/1.1
     53 Host: example.com:%HTTP6PORT
     54 User-Agent: curl/%VERSION
     55 Accept: */*
     56 
     57 </protocol>
     58 </verify>
     59 </testcase>