quickjs-tart

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

test585 (972B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 multi
      7 CURLOPT_OPENSOCKETFUNCTION
      8 CURLOPT_CLOSESOCKETFUNCTION
      9 </keywords>
     10 </info>
     11 
     12 # Server-side
     13 <reply>
     14 <data>
     15 HTTP/1.1 302 eat this!
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Server: test-server/fake
     18 Location: this-is-the-first.html
     19 Content-Length: 0
     20 Connection: close
     21 
     22 </data>
     23 <datacheck>
     24 [OPEN] counter: 1
     25 HTTP/1.1 302 eat this!
     26 Date: Tue, 09 Nov 2010 14:49:00 GMT
     27 Server: test-server/fake
     28 Location: this-is-the-first.html
     29 Content-Length: 0
     30 Connection: close
     31 
     32 [CLOSE] counter: 1
     33 </datacheck>
     34 </reply>
     35 
     36 # Client-side
     37 <client>
     38 <server>
     39 http
     40 </server>
     41 <features>
     42 http
     43 </features>
     44 # tool is what to use instead of 'curl'
     45 <tool>
     46 lib500
     47 </tool>
     48 
     49 <name>
     50 socket open/close callbacks
     51 </name>
     52 <command>
     53 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     54 </command>
     55 </client>
     56 
     57 # Verify data after the test has been "shot"
     58 <verify>
     59 <protocol>
     60 GET /%TESTNUMBER HTTP/1.1
     61 Host: %HOSTIP:%HTTPPORT
     62 Accept: */*
     63 
     64 </protocol>
     65 </verify>
     66 </testcase>