tizen 2.3.1 release
[external/curl.git] / tests / data / test1514
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 Content-Length
7 </keywords>
8 </info>
9
10 # Server-side
11 <reply>
12 <data nocheck="yes">
13 HTTP/1.1 411 Length Required\r
14 Date: Sun, 19 Jan 2014 18:50:58 GMT\r
15 Server: test-server/fake swsclose\r
16 Connection: close\r
17 </data>
18 </reply>
19
20 # Client-side
21 <client>
22 <server>
23 http
24 </server>
25 <tool>
26 lib1514
27 </tool>
28 <name>
29 HTTP POST with read callback and unknown data size
30 </name>
31 <command>
32 http://%HOSTIP:%HTTPPORT/1514
33 </command>
34 </client>
35
36 # Verify data after the test has been "shot"
37 <verify>
38 # Content-Length header is not present
39 <protocol>
40 POST /1514 HTTP/1.1\r
41 Host: %HOSTIP:%HTTPPORT\r
42 Accept: */*\r
43 Content-Type: application/x-www-form-urlencoded\r
44 Expect: 100-continue\r
45 \r
46 </protocol>
47 </verify>
48 </testcase>