quickjs-tart

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

test2058 (2178B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP PUT
      6 HTTP proxy
      7 HTTP Digest auth
      8 Resume
      9 Content-Range
     10 CUSTOMREQUEST
     11 </keywords>
     12 </info>
     13 
     14 # Server-side
     15 <reply>
     16 <data>
     17 HTTP/1.1 100 Continue
     18 Server: Microsoft-IIS/5.0
     19 Date: Sun, 03 Apr 2005 14:57:45 GMT
     20 X-Powered-By: ASP.NET
     21 
     22 HTTP/1.1 401 authentication please
     23 Server: Microsoft-IIS/6.0
     24 WWW-Authenticate: Digest realm="testrealm", algorithm="SHA-256", nonce="1053604144"
     25 Content-Type: text/html; charset=iso-8859-1
     26 Content-Length: 0
     27 
     28 </data>
     29 <data1000>
     30 HTTP/1.1 200 A OK
     31 Server: Microsoft-IIS/6.0
     32 Content-Type: text/html; charset=iso-8859-1
     33 Content-Length: 3
     34 
     35 ok
     36 </data1000>
     37 
     38 <datacheck>
     39 HTTP/1.1 100 Continue
     40 Server: Microsoft-IIS/5.0
     41 Date: Sun, 03 Apr 2005 14:57:45 GMT
     42 X-Powered-By: ASP.NET
     43 
     44 HTTP/1.1 401 authentication please
     45 Server: Microsoft-IIS/6.0
     46 WWW-Authenticate: Digest realm="testrealm", algorithm="SHA-256", nonce="1053604144"
     47 Content-Type: text/html; charset=iso-8859-1
     48 Content-Length: 0
     49 
     50 HTTP/1.1 200 A OK
     51 Server: Microsoft-IIS/6.0
     52 Content-Type: text/html; charset=iso-8859-1
     53 Content-Length: 3
     54 
     55 ok
     56 </datacheck>
     57 
     58 </reply>
     59 
     60 # Client-side
     61 <client>
     62 #
     63 <server>
     64 http
     65 </server>
     66 <features>
     67 !SSPI
     68 crypto
     69 proxy
     70 digest
     71 </features>
     72 <name>
     73 HTTP Digest with PUT, resumed upload, modified method and SHA-256
     74 </name>
     75 <command>
     76 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -T %LOGDIR/%TESTNUMBER -x  http://%HOSTIP:%HTTPPORT -C 2 -X GET
     77 </command>
     78 <file name="%LOGDIR/%TESTNUMBER">
     79 test
     80 </file>
     81 </client>
     82 
     83 # Verify data after the test has been "shot"
     84 <verify>
     85 <protocol>
     86 GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
     87 Host: %HOSTIP:%HTTPPORT
     88 Content-Range: bytes 2-4/5
     89 User-Agent: curl/%VERSION
     90 Accept: */*
     91 Proxy-Connection: Keep-Alive
     92 Content-Length: 0
     93 
     94 GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
     95 Host: %HOSTIP:%HTTPPORT
     96 Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER", response="fbed69f9f3fd304c8f1acb1a43eb32688b933c0e28055c16b926cbcec070aeed", algorithm=SHA-256
     97 Content-Range: bytes 2-4/5
     98 User-Agent: curl/%VERSION
     99 Accept: */*
    100 Proxy-Connection: Keep-Alive
    101 Content-Length: 3
    102 
    103 st
    104 </protocol>
    105 </verify>
    106 </testcase>