quickjs-tart

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

test1436 (1292B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 UnixSockets
      7 </keywords>
      8 </info>
      9 
     10 <reply>
     11 <data1>
     12 HTTP/1.1 200 OK
     13 Date: Mon, 17 Nov 2014 13:42:47 GMT
     14 Content-Length: 6
     15 
     16 First
     17 </data1>
     18 <data2>
     19 HTTP/1.1 200 OK
     20 Date: Mon, 17 Nov 2014 13:42:48 GMT
     21 Content-Length: 7
     22 
     23 Second
     24 </data2>
     25 <data3>
     26 HTTP/1.1 200 OK
     27 Date: Mon, 17 Nov 2014 13:42:49 GMT
     28 Content-Length: 6
     29 
     30 Third
     31 </data3>
     32 </reply>
     33 
     34 <client>
     35 <features>
     36 UnixSockets
     37 </features>
     38 <server>
     39 http-unix
     40 </server>
     41 <name>
     42 HTTP requests with multiple connections over Unix socket
     43 </name>
     44 <command>
     45 --unix-socket %HTTPUNIXPATH http://one.example.com/%TESTNUMBER0001 http://two.example.com/%TESTNUMBER0002 http://one.example.com/%TESTNUMBER0003
     46 </command>
     47 </client>
     48 
     49 <verify>
     50 <protocol>
     51 GET /%TESTNUMBER0001 HTTP/1.1
     52 Host: one.example.com
     53 User-Agent: curl/%VERSION
     54 Accept: */*
     55 
     56 GET /%TESTNUMBER0002 HTTP/1.1
     57 Host: two.example.com
     58 User-Agent: curl/%VERSION
     59 Accept: */*
     60 
     61 GET /%TESTNUMBER0003 HTTP/1.1
     62 Host: one.example.com
     63 User-Agent: curl/%VERSION
     64 Accept: */*
     65 
     66 </protocol>
     67 <stdout>
     68 HTTP/1.1 200 OK
     69 Date: Mon, 17 Nov 2014 13:42:47 GMT
     70 Content-Length: 6
     71 
     72 First
     73 HTTP/1.1 200 OK
     74 Date: Mon, 17 Nov 2014 13:42:48 GMT
     75 Content-Length: 7
     76 
     77 Second
     78 HTTP/1.1 200 OK
     79 Date: Mon, 17 Nov 2014 13:42:49 GMT
     80 Content-Length: 6
     81 
     82 Third
     83 </stdout>
     84 </verify>
     85 </testcase>