Git init
[external/curl.git] / tests / data / test218
1 <testcase>
2 #
3 # Server-side
4 <reply>
5 <data>
6 HTTP/1.0 200 OK\r
7 Server: test-server/fake\r
8 Content-Type: text/html\r
9 Content-Length: 6\r
10 \r
11 blaha
12 </data>
13 </reply>
14
15 #
16 # Client-side
17 <client>
18 <server>
19 http
20 </server>
21  <name>
22 HTTP PUT from a file but enforce chunked transfer-encoding
23  </name>
24  <command>
25  -T log/file218 -H "Transfer-Encoding: chunked" http://%HOSTIP:%HTTPPORT/218
26 </command>
27 <file name="log/file218">
28 just some tiny teeny contents
29 </file>
30 </client>
31
32 #
33 # Verify data after the test has been "shot"
34 <verify>
35 <strip>
36 ^User-Agent:.*
37 </strip>
38 <protocol>
39 PUT /218 HTTP/1.1\r
40 Host: %HOSTIP:%HTTPPORT\r
41 Accept: */*\r
42 Transfer-Encoding: chunked\r
43 Expect: 100-continue\r
44 \r
45 1e\r
46 just some tiny teeny contents
47 \r
48 0\r
49 \r
50 </protocol>
51 </verify>
52 </testcase>