quickjs-tart

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

test2052 (1115B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 CURLOPT_CONNECT_TO
      7 --resolve
      8 </keywords>
      9 </info>
     10 
     11 #
     12 # Server-side
     13 <reply>
     14 <data nocheck="yes">
     15 HTTP/1.1 200 OK
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Content-Length: 3
     18 Content-Type: text/plain
     19 
     20 OK
     21 </data>
     22 </reply>
     23 
     24 #
     25 # Client-side
     26 <client>
     27 <server>
     28 http
     29 </server>
     30 <name>
     31 --connect-to: do not mix connections with and without a "connect to host"
     32 </name>
     33 
     34 <command>
     35 http://www.example.com:%HTTPPORT/%TESTNUMBER --resolve www.example.com:%HTTPPORT:%HOSTIP -w "%{num_connects}\n" --next --resolve -www.example.com:%HTTPPORT --connect-to ::%HOSTIP:%HTTPPORT http://www.example.com:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n"
     36 </command>
     37 </client>
     38 
     39 #
     40 # Verify data after the test has been "shot"
     41 <verify>
     42 <protocol>
     43 GET /%TESTNUMBER HTTP/1.1
     44 Host: www.example.com:%HTTPPORT
     45 User-Agent: curl/%VERSION
     46 Accept: */*
     47 
     48 GET /%TESTNUMBER HTTP/1.1
     49 Host: www.example.com:%HTTPPORT
     50 User-Agent: curl/%VERSION
     51 Accept: */*
     52 
     53 </protocol>
     54 
     55 <stdout>
     56 HTTP/1.1 200 OK
     57 Date: Tue, 09 Nov 2010 14:49:00 GMT
     58 Content-Length: 3
     59 Content-Type: text/plain
     60 
     61 OK
     62 1
     63 OK
     64 1
     65 </stdout>
     66 
     67 </verify>
     68 </testcase>