quickjs-tart

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

test175 (1616B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 HTTP Digest auth
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 beng swsclose swsbounce
     14 Server: Microsoft-IIS/6.0
     15 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
     16 Content-Type: text/html; charset=iso-8859-1
     17 
     18 This is not the real page
     19 </data>
     20 
     21 <data1>
     22 HTTP/1.1 200 moo swsclose
     23 Server: Microsoft-IIS/6.0
     24 Content-Type: text/html; charset=iso-8859-1
     25 Content-Length: 16
     26 
     27 content for you
     28 </data1>
     29 
     30 <datacheck>
     31 HTTP/1.1 200 beng swsclose swsbounce
     32 Server: Microsoft-IIS/6.0
     33 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
     34 Content-Type: text/html; charset=iso-8859-1
     35 
     36 HTTP/1.1 200 moo swsclose
     37 Server: Microsoft-IIS/6.0
     38 Content-Type: text/html; charset=iso-8859-1
     39 Content-Length: 16
     40 
     41 content for you
     42 </datacheck>
     43 
     44 </reply>
     45 
     46 # Client-side
     47 <client>
     48 #
     49 <server>
     50 http
     51 </server>
     52 <features>
     53 crypto
     54 digest
     55 </features>
     56 <name>
     57 HTTP POST --digest to server not requiring any auth at all
     58 </name>
     59 <command>
     60 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk"
     61 </command>
     62 </client>
     63 
     64 # Verify data after the test has been "shot"
     65 <verify>
     66 <protocol nonewline="yes">
     67 POST /%TESTNUMBER HTTP/1.1
     68 Host: %HOSTIP:%HTTPPORT
     69 User-Agent: curl/%VERSION
     70 Accept: */*
     71 Content-Length: 0
     72 Content-Type: application/x-www-form-urlencoded
     73 
     74 POST /%TESTNUMBER HTTP/1.1
     75 Host: %HOSTIP:%HTTPPORT
     76 User-Agent: curl/%VERSION
     77 Accept: */*
     78 Content-Length: 11
     79 Content-Type: application/x-www-form-urlencoded
     80 
     81 junkelijunk
     82 </protocol>
     83 </verify>
     84 </testcase>