quickjs-tart

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

test1430 (828B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 </keywords>
      7 </info>
      8 
      9 <reply>
     10 <data nocheck="yes">
     11 HTTP/1.1 -12 OK
     12 Date: Tue, 09 Nov 2010 14:49:00 GMT
     13 Server: test-server/fake
     14 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     15 ETag: "21025-dc7-39462498"
     16 Accept-Ranges: bytes
     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 <server>
     30 http
     31 </server>
     32 <name>
     33 HTTP GET with negative response code
     34 </name>
     35 <command>
     36 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     37 </command>
     38 </client>
     39 
     40 #
     41 # Verify data after the test has been "shot"
     42 <verify>
     43 <protocol>
     44 GET /%TESTNUMBER HTTP/1.1
     45 Host: %HOSTIP:%HTTPPORT
     46 User-Agent: curl/%VERSION
     47 Accept: */*
     48 
     49 </protocol>
     50 # 1 - CURLE_UNSUPPORTED_PROTOCOL
     51 # Due to invalid HTTP response code
     52 <errorcode>
     53 1
     54 </errorcode>
     55 </verify>
     56 </testcase>