quickjs-tart

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

test675 (927B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP Basic auth
      7 </keywords>
      8 </info>
      9 # Server-side
     10 <reply>
     11 <data>
     12 HTTP/1.1 200 OK swsclose
     13 Date: Thu, 09 Nov 2010 14:49:00 GMT
     14 Content-Type: text/html
     15 Content-Length: 26
     16 
     17 the content would go here
     18 </data>
     19 </reply>
     20 
     21 # Client-side
     22 <client>
     23 <server>
     24 http
     25 </server>
     26 <name>
     27 HTTP connection reuse and different credentials
     28 </name>
     29 
     30 <command>
     31 http://user1:foo1@%HOSTIP:%HTTPPORT/user1/%TESTNUMBER http://user2:foo2@%HOSTIP:%HTTPPORT/user2/%TESTNUMBER
     32 </command>
     33 <features>
     34 proxy
     35 </features>
     36 </client>
     37 
     38 # Verify data after the test has been "shot"
     39 <verify>
     40 <protocol>
     41 GET /user1/%TESTNUMBER HTTP/1.1
     42 Host: %HOSTIP:%HTTPPORT
     43 Authorization: Basic %b64[user1:foo1]b64%
     44 User-Agent: curl/%VERSION
     45 Accept: */*
     46 
     47 GET /user2/%TESTNUMBER HTTP/1.1
     48 Host: %HOSTIP:%HTTPPORT
     49 Authorization: Basic %b64[user2:foo2]b64%
     50 User-Agent: curl/%VERSION
     51 Accept: */*
     52 
     53 </protocol>
     54 </verify>
     55 </testcase>