Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test510
blob9e6502d64cac068bef0164fef010e6aa9188b82d
1 <testcase>
3 # Server-side
4 <reply>
5 <data mode="text">
6 HTTP/1.1 200 OK
7 Date: Thu, 09 Nov 2010 14:49:00 GMT
8 Server: test-server/fake swsclose
9 Connection: close
10 Content-Type: text/html
12 hello
13 </data>
14 </reply>
16 # Client-side
17 <client>
18 <server>
19 http
20 </server>
21 # tool is what to use instead of 'curl'
22 <tool>
23 lib510
24 </tool>
26  <name>
27 send HTTP POST using read callback, using chunked transfer-encoding
28  </name>
29  <command>
30 http://%HOSTIP:%HTTPPORT/510
31 </command>
32 </client>
35 # Verify data after the test has been "shot"
36 <verify>
37 <protocol>
38 POST /510 HTTP/1.1
39 Host: %HOSTIP:%HTTPPORT
40 Accept: */*
41 Transfer-Encoding: chunked
42 Content-Type: application/x-www-form-urlencoded
45 one
47 two
49 three
51 and a final longer crap: four
54 </protocol>
55 </verify>
56 </testcase>