Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test268
blob998664cb3a357d35c3ecadc573a155bc001093c6
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 </keywords>
7 </info>
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.0 200 OK
13 Server: test-server/fake
14 Content-Type: text/html
15 Content-Length: 0
17 this is data even though Content-Length is set to zero
18 </data>
19 <datacheck>
20 HTTP/1.0 200 OK
21 Server: test-server/fake
22 Content-Type: text/html
23 Content-Length: 0
25 </datacheck>
26 </reply>
29 # Client-side
30 <client>
31 <server>
32 http
33 </server>
34  <name>
35 HTTP POST a non-existing file
36  </name>
37  <command>
38  -d @nonesuchfile http://%HOSTIP:%HTTPPORT/268
39 </command>
40 </client>
43 # Verify data after the test has been "shot"
44 <verify>
45 <strip>
46 ^User-Agent:.*
47 </strip>
48 <protocol>
49 POST /268 HTTP/1.1
50 Host: %HOSTIP:%HTTPPORT
51 Accept: */*
52 Content-Length: 0
53 Content-Type: application/x-www-form-urlencoded
55 </protocol>
56 </verify>
57 </testcase>