quickjs-tart

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

test1033 (853B)


      1 <testcase>
      2 #
      3 # This case with an unexpected 1xx response used to cause a "hang" before the fix
      4 # got 7.19.0
      5 <info>
      6 <keywords>
      7 HTTP
      8 HTTP GET
      9 </keywords>
     10 </info>
     11 
     12 #
     13 # Server-side
     14 <reply>
     15 <data>
     16 HTTP/1.1 102 unexpected huh?!
     17 
     18 HTTP/1.1 200 OK
     19 Date: Tue, 09 Nov 2010 14:49:00 GMT
     20 Server: test-server/fake
     21 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     22 ETag: "21025-dc7-39462498"
     23 Accept-Ranges: bytes
     24 Content-Length: 6
     25 Connection: close
     26 Content-Type: text/html
     27 Funny-head: yesyes
     28 
     29 -foo-
     30 </data>
     31 </reply>
     32 
     33 #
     34 # Client-side
     35 <client>
     36 <server>
     37 http
     38 </server>
     39 <name>
     40 HTTP GET with 102 response!
     41 </name>
     42 <command>
     43 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     44 </command>
     45 </client>
     46 
     47 #
     48 # Verify data after the test has been "shot"
     49 <verify>
     50 <protocol>
     51 GET /%TESTNUMBER HTTP/1.1
     52 Host: %HOSTIP:%HTTPPORT
     53 User-Agent: curl/%VERSION
     54 Accept: */*
     55 
     56 </protocol>
     57 </verify>
     58 </testcase>