quickjs-tart

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

test1074 (1146B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP/1.0
      7 DELAY
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 <data nocheck="yes">
     14 HTTP/1.0 200 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Content-Length: 9
     17 Connection: Keep-Alive
     18 
     19 surprise
     20 </data>
     21 <data1>
     22 HTTP/1.0 200 OK swsclose
     23 Date: Tue, 09 Nov 2010 14:49:00 GMT
     24 Connection: close
     25 
     26 surprise2
     27 </data1>
     28 
     29 <postcmd>
     30 wait 1
     31 </postcmd>
     32 </reply>
     33 
     34 # Client-side
     35 <client>
     36 <server>
     37 http
     38 </server>
     39 <name>
     40 HTTP downgrade to HTTP/1.0 on second request
     41 </name>
     42 <command>
     43 http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/wantmore/%TESTNUMBER0001
     44 </command>
     45 </client>
     46 
     47 # Verify data after the test has been "shot"
     48 <verify>
     49 <stdout>
     50 HTTP/1.0 200 OK
     51 Date: Tue, 09 Nov 2010 14:49:00 GMT
     52 Content-Length: 9
     53 Connection: Keep-Alive
     54 
     55 surprise
     56 HTTP/1.0 200 OK swsclose
     57 Date: Tue, 09 Nov 2010 14:49:00 GMT
     58 Connection: close
     59 
     60 surprise2
     61 </stdout>
     62 
     63 <protocol>
     64 GET /want/%TESTNUMBER HTTP/1.1
     65 Host: %HOSTIP:%HTTPPORT
     66 User-Agent: curl/%VERSION
     67 Accept: */*
     68 
     69 GET /wantmore/%TESTNUMBER0001 HTTP/1.0
     70 Host: %HOSTIP:%HTTPPORT
     71 User-Agent: curl/%VERSION
     72 Accept: */*
     73 
     74 </protocol>
     75 </verify>
     76 </testcase>