quickjs-tart

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

test2049 (1204B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 CURLOPT_CONNECT_TO
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Content-Length: 3
     17 Content-Type: text/plain
     18 
     19 OK
     20 </data>
     21 </reply>
     22 
     23 #
     24 # Client-side
     25 <client>
     26 <server>
     27 http
     28 </server>
     29 <name>
     30 Connect to specific host
     31 </name>
     32 
     33 <command>
     34 http://www1.example.com:8081/%TESTNUMBER --connect-to ::%HOSTIP:%HTTPPORT --next http://www2.example.com:8082/%TESTNUMBER --connect-to :8082:%HOSTIP:%HTTPPORT --next http://www3.example.com:8083/%TESTNUMBER --connect-to www3.example.com::%HOSTIP:%HTTPPORT --next http://www4.example.com:8084/%TESTNUMBER --connect-to www4.example.com:8084:%HOSTIP:%HTTPPORT
     35 </command>
     36 </client>
     37 
     38 #
     39 # Verify data after the test has been "shot"
     40 <verify>
     41 <protocol>
     42 GET /%TESTNUMBER HTTP/1.1
     43 Host: www1.example.com:8081
     44 User-Agent: curl/%VERSION
     45 Accept: */*
     46 
     47 GET /%TESTNUMBER HTTP/1.1
     48 Host: www2.example.com:8082
     49 User-Agent: curl/%VERSION
     50 Accept: */*
     51 
     52 GET /%TESTNUMBER HTTP/1.1
     53 Host: www3.example.com:8083
     54 User-Agent: curl/%VERSION
     55 Accept: */*
     56 
     57 GET /%TESTNUMBER HTTP/1.1
     58 Host: www4.example.com:8084
     59 User-Agent: curl/%VERSION
     60 Accept: */*
     61 
     62 </protocol>
     63 
     64 </verify>
     65 </testcase>