quickjs-tart

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

test361 (803B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 --fail-with-body
      7 </keywords>
      8 </info>
      9 # Server-side
     10 <reply>
     11 <data>
     12 HTTP/1.0 404 BAD BOY swsclose
     13 Content-Type: text/html
     14 
     15 This silly page doesn't reaaaaaly exist so you should not get it.
     16 </data>
     17 </reply>
     18 
     19 # Client-side
     20 <client>
     21 <server>
     22 http
     23 </server>
     24 <name>
     25 HTTP GET --fail-with-body on HTTP error return - twice
     26 </name>
     27 <command>
     28 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER --fail-with-body
     29 </command>
     30 </client>
     31 
     32 # Verify data after the test has been "shot"
     33 <verify>
     34 <protocol>
     35 GET /%TESTNUMBER HTTP/1.1
     36 Host: %HOSTIP:%HTTPPORT
     37 User-Agent: curl/%VERSION
     38 Accept: */*
     39 
     40 GET /%TESTNUMBER HTTP/1.1
     41 Host: %HOSTIP:%HTTPPORT
     42 User-Agent: curl/%VERSION
     43 Accept: */*
     44 
     45 </protocol>
     46 <errorcode>
     47 22
     48 </errorcode>
     49 </verify>
     50 </testcase>