quickjs-tart

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

test1068 (733B)


      1 <testcase>
      2 # Similar to test 60
      3 <info>
      4 <keywords>
      5 HTTP
      6 HTTP PUT
      7 chunked Transfer-Encoding
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.0 200 OK swsclose
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake
     17 
     18 blablabla
     19 
     20 </data>
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <server>
     26 http
     27 </server>
     28 <name>
     29 HTTP PUT from stdin
     30 </name>
     31 <command>
     32 http://%HOSTIP:%HTTPPORT/bzz/%TESTNUMBER -T -
     33 </command>
     34 <stdin>
     35 more than one byte
     36 </stdin>
     37 </client>
     38 
     39 # Verify data after the test has been "shot"
     40 <verify>
     41 <protocol>
     42 PUT /bzz/%TESTNUMBER HTTP/1.1
     43 Host: %HOSTIP:%HTTPPORT
     44 User-Agent: curl/%VERSION
     45 Accept: */*
     46 Transfer-Encoding: chunked
     47 Expect: 100-continue
     48 
     49 13
     50 more than one byte
     51 
     52 0
     53 
     54 </protocol>
     55 </verify>
     56 </testcase>