quickjs-tart

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

test1960 (730B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 CURLOPT_SOCKOPTFUNCTION
      6 CURL_SOCKOPT_ALREADY_CONNECTED
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data crlf="yes">
     13 HTTP/1.1 200 OK
     14 Date: Thu, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Type: text/html
     17 Content-Length: 0
     18 
     19 </data>
     20 </reply>
     21 
     22 # Client-side
     23 <client>
     24 <precheck>
     25 ./libtest/lib%TESTNUMBER check
     26 </precheck>
     27 <server>
     28 http
     29 </server>
     30 
     31 <name>
     32 application hands over already connected socket
     33 </name>
     34 <tool>
     35 lib%TESTNUMBER
     36 </tool>
     37 
     38 <command>
     39 http://%HOSTIP:%HTTPPORT/file %HOSTIP %HTTPPORT
     40 </command>
     41 </client>
     42 
     43 # Verify data after the test has been "shot"
     44 <verify>
     45 <protocol crlf="yes">
     46 GET /file HTTP/1.1
     47 Host: %HOSTIP:%HTTPPORT
     48 Accept: */*
     49 
     50 </protocol>
     51 </verify>
     52 </testcase>