xref: /curl/tests/data/test510 (revision fc3e1cbc)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6chunked Transfer-Encoding
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake swsclose
17Connection: close
18Content-Type: text/html
19
20hello
21</data>
22</reply>
23
24# Client-side
25<client>
26<server>
27http
28</server>
29# tool is what to use instead of 'curl'
30<tool>
31lib%TESTNUMBER
32</tool>
33
34<name>
35send HTTP POST using read callback, using chunked transfer-encoding
36</name>
37<command>
38http://%HOSTIP:%HTTPPORT/%TESTNUMBER
39</command>
40</client>
41
42#
43# Verify data after the test has been "shot"
44<verify>
45<protocol>
46POST /%TESTNUMBER HTTP/1.1
47Host: %HOSTIP:%HTTPPORT
48Accept: */*
49Transfer-Encoding: chunked
50Content-Type: application/x-www-form-urlencoded
51Expect: 100-continue
52
533
54one
553
56two
575
58three
591d
60and a final longer crap: four
610
62
63</protocol>
64</verify>
65</testcase>
66