Initial commit of visual studio 9 git build superproject.
[git-build-vc9.git] / curl / tests / data / test510
blob360d6e96ee3d6e38f66d294e9a12d4b331069fac
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\r
39 Host: %HOSTIP:%HTTPPORT\r
40 Accept: */*\r
41 Transfer-Encoding: chunked\r
42 Content-Type: application/x-www-form-urlencoded\r
44 3\r
45 one\r
46 3\r
47 two\r
48 5\r
49 three\r
50 1d\r
51 and a final longer crap: four\r
52 0\r
54 </protocol>
55 </verify>
56 </testcase>