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