Git init
[external/curl.git] / tests / data / test60
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\r
13 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
14 Server: test-server/fake\r
15 \r
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\r
44 Host: %HOSTIP:%HTTPPORT\r
45 Accept: */*\r
46 Transfer-Encoding: chunked\r
47 Content-Length: 1\r
48 Expect: 100-continue\r
49 \r
50 13\r
51 more than one byte
52 \r
53 0\r
54 \r
55 </protocol>
56 </verify>
57 </testcase>