Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test218
blob1b9ad597e3d226432b49c4c0968c8dde4fc75bdd
1 <testcase>
3 # Server-side
4 <reply>
5 <data>
6 HTTP/1.0 200 OK
7 Server: test-server/fake
8 Content-Type: text/html
9 Content-Length: 6
11 blaha
12 </data>
13 </reply>
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>
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
40 Host: %HOSTIP:%HTTPPORT
41 Accept: */*
42 Transfer-Encoding: chunked
43 Expect: 100-continue
46 just some tiny teeny contents
50 </protocol>
51 </verify>
52 </testcase>