quickjs-tart

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

test365 (943B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 chunked Transfer-Encoding
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake
     17 Content-Length: 123456
     18 Transfer-Encoding: chunked
     19 Content-Type: text/html
     20 Funny-head: yesyes
     21 
     22 10
     23 chunked data fun
     24 0
     25 
     26 </data>
     27 <datacheck nonewline="yes">
     28 HTTP/1.1 200 OK
     29 Date: Tue, 09 Nov 2010 14:49:00 GMT
     30 Server: test-server/fake
     31 Content-Length: 123456
     32 Transfer-Encoding: chunked
     33 Content-Type: text/html
     34 Funny-head: yesyes
     35 
     36 chunked data fun
     37 </datacheck>
     38 </reply>
     39 
     40 #
     41 # Client-side
     42 <client>
     43 <server>
     44 http
     45 </server>
     46 <name>
     47 HTTP/1.1 with chunked AND Content-Length headers
     48 </name>
     49 <command>
     50 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     51 </command>
     52 </client>
     53 
     54 #
     55 # Verify data after the test has been "shot"
     56 <verify>
     57 <protocol>
     58 GET /%TESTNUMBER HTTP/1.1
     59 Host: %HOSTIP:%HTTPPORT
     60 User-Agent: curl/%VERSION
     61 Accept: */*
     62 
     63 </protocol>
     64 </verify>
     65 </testcase>