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