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 13 Server: test-server/fake 14 Content-Type: text/html 15 Content-Length: 6 16 17 blaha 18 </data> 19 </reply> 20 21 # 22 # Client-side 23 <client> 24 <server> 25 http 26 </server> 27 <name> 28 HTTP PUT from a file but enforce chunked transfer-encoding 29 </name> 30 <command> 31 -T log/file218 -H "Transfer-Encoding: chunked" http://%HOSTIP:%HTTPPORT/218 32 </command> 33 <file name="log/file218"> 34 just some tiny teeny contents 35 </file> 36 </client> 37 38 # 39 # Verify data after the test has been "shot" 40 <verify> 41 <strip> 42 ^User-Agent:.* 43 </strip> 44 <protocol> 45 PUT /218 HTTP/1.1 46 Host: %HOSTIP:%HTTPPORT 47 Accept: */* 48 Transfer-Encoding: chunked 49 Expect: 100-continue 50 51 1e 52 just some tiny teeny contents 53 54 0 55 56 </protocol> 57 </verify> 58 </testcase> 59