Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test60
blob3fe1ffa31cc761b61e43c79500ba5283530336ee
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP PUT
6 </keywords>
7 </info>
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.0 200 OK swsclose
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Server: test-server/fake
16 blablabla
18 </data>
19 </reply>
21 # Client-side
22 <client>
23 <server>
24 http
25 </server>
26 <name>
27 HTTP PUT from stdin with wrong content-length
28 </name>
29  <command>
30 http://%HOSTIP:%HTTPPORT/bzz/60 -T - -H "Content-Length: 1"
31 </command>
32 <stdin>
33 more than one byte
34 </stdin>
35 </client>
37 # Verify data after the test has been "shot"
38 <verify>
39 <strip>
40 ^User-Agent:.*
41 </strip>
42 <protocol>
43 PUT /bzz/60 HTTP/1.1
44 Host: %HOSTIP:%HTTPPORT
45 Accept: */*
46 Transfer-Encoding: chunked
47 Content-Length: 1
48 Expect: 100-continue
51 more than one byte
55 </protocol>
56 </verify>
57 </testcase>