xref: /curl/tests/data/test1514 (revision 7f11282d)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6Content-Length
7chunked Transfer-Encoding
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Date: Sun, 19 Jan 2014 18:50:58 GMT
16Server: test-server/fake swsclose
17Connection: close
18
19</data>
20</reply>
21
22# Client-side
23<client>
24<server>
25http
26</server>
27<tool>
28lib%TESTNUMBER
29</tool>
30<name>
31HTTP POST with read callback and unknown data size
32</name>
33<command>
34http://%HOSTIP:%HTTPPORT/%TESTNUMBER
35</command>
36</client>
37
38# Verify data after the test has been "shot"
39<verify>
40# Content-Length header is not present
41# Transfer-Encoding header is added automatically
42<protocol>
43POST /%TESTNUMBER HTTP/1.1
44Host: %HOSTIP:%HTTPPORT
45Accept: */*
46Transfer-Encoding: chunked
47Content-Type: application/x-www-form-urlencoded
48Expect: 100-continue
49
501
51d
521
53u
541
55m
561
57m
581
59y
600
61
62</protocol>
63</verify>
64</testcase>
65