xref: /curl/tests/data/test1901 (revision 308cc482)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6CURLOPT_READFUNCTION
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data crlf="yes" nocheck="yes">
13HTTP/1.1 200 OK
14Content-Length: 6
15Content-Type: text/html
16
17-foo-
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26
27<name>
28Chunked HTTP POST from callback with CURLOPT_POSTFIELDSIZE set
29</name>
30<tool>
31lib%TESTNUMBER
32</tool>
33
34<command>
35http://%HOSTIP:%HTTPPORT/boom
36</command>
37</client>
38
39# Verify data after the test has been "shot"
40<verify>
41<protocol crlf="yes">
42POST /boom HTTP/1.1
43Host: %HOSTIP:%HTTPPORT
44Accept: */*
45Transfer-Encoding: chunked
46Content-Type: application/x-www-form-urlencoded
47
483
49one
503
51two
525
53three
544
55four
560
57
58</protocol>
59</verify>
60</testcase>
61