quickjs-tart

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

test1419 (964B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP NTLM auth
      7 connection reuse
      8 </keywords>
      9 </info>
     10 # Server-side
     11 <reply>
     12 <servercmd>
     13 connection-monitor
     14 </servercmd>
     15 
     16 <data>
     17 HTTP/1.1 200 fine!
     18 Content-Length: 20
     19 
     20 Feel free to get it
     21 </data>
     22 
     23 <data3>
     24 HTTP/1.1 200 OK
     25 Server: Another one/1.0
     26 Content-Length: 4
     27 
     28 boo
     29 </data3>
     30 
     31 <datacheck>
     32 HTTP/1.1 200 fine!
     33 Content-Length: 20
     34 
     35 Feel free to get it
     36 </datacheck>
     37 </reply>
     38 
     39 # Client-side
     40 <client>
     41 <server>
     42 http
     43 </server>
     44 <name>
     45 HTTP with --anyauth (but no auth!) and connection reuse
     46 </name>
     47 <command>
     48 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --anyauth http://%HOSTIP:%HTTPPORT/%TESTNUMBER0003
     49 </command>
     50 </client>
     51 
     52 # Verify data after the test has been "shot"
     53 <verify>
     54 <protocol>
     55 GET /%TESTNUMBER HTTP/1.1
     56 Host: %HOSTIP:%HTTPPORT
     57 User-Agent: curl/%VERSION
     58 Accept: */*
     59 
     60 GET /%TESTNUMBER0003 HTTP/1.1
     61 Host: %HOSTIP:%HTTPPORT
     62 User-Agent: curl/%VERSION
     63 Accept: */*
     64 
     65 [DISCONNECT]
     66 </protocol>
     67 </verify>
     68 </testcase>