quickjs-tart

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

test1134 (1011B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP HEAD
      6 -G
      7 </keywords>
      8 </info>
      9 #
     10 # Server-side
     11 <reply>
     12 <servercmd>
     13 connection-monitor
     14 </servercmd>
     15 <data>
     16 HTTP/1.1 200 OK
     17 Date: Tue, 09 Nov 2010 14:49:00 GMT
     18 Content-Length: 10
     19 
     20 contents1
     21 </data>
     22 <data1>
     23 HTTP/1.1 200 OK
     24 Date: Tue, 09 Nov 2010 14:49:00 GMT
     25 Content-Length: 10
     26 
     27 contents2
     28 </data1>
     29 </reply>
     30 
     31 #
     32 # Client-side
     33 <client>
     34 <server>
     35 http
     36 </server>
     37 <name>
     38 HTTP connection reuse with different credentials
     39 </name>
     40 <command>
     41 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u user1:password1 --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -u 2user:password2
     42 </command>
     43 </client>
     44 
     45 #
     46 # Verify data after the test has been "shot"
     47 <verify>
     48 <protocol>
     49 GET /%TESTNUMBER HTTP/1.1
     50 Host: %HOSTIP:%HTTPPORT
     51 Authorization: Basic %b64[user1:password1]b64%
     52 User-Agent: curl/%VERSION
     53 Accept: */*
     54 
     55 GET /%TESTNUMBER0001 HTTP/1.1
     56 Host: %HOSTIP:%HTTPPORT
     57 Authorization: Basic %b64[2user:password2]b64%
     58 User-Agent: curl/%VERSION
     59 Accept: */*
     60 
     61 [DISCONNECT]
     62 </protocol>
     63 </verify>
     64 </testcase>