Debian Codegraph @

curl/tests/data/test60

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