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