1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data>
12HTTP/1.0 200 OK swsclose
13Date: Thu, 09 Nov 2010 14:49:00 GMT
14Server: test-server/fake
15
16blablabla
17
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26<name>
27HTTP PUT from stdin with wrong content-length
28</name>
29 <command>
30http://%HOSTIP:%HTTPPORT/bzz/60 -T - -H "Content-Length: 1"
31</command>
32<stdin>
33more 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>
43PUT /bzz/60 HTTP/1.1
44Host: %HOSTIP:%HTTPPORT
45Accept: */*
46Transfer-Encoding: chunked
47Content-Length: 1
48Expect: 100-continue
49
5013
51more than one byte
52
530
54
55</protocol>
56</verify>
57</testcase>
58