xref: /curl/tests/data/test365 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6Chunked
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
17Content-Length: 123456
18Transfer-Encoding: chunked
19Content-Type: text/html
20Funny-head: yesyes
21
2210
23chunked data fun
240
25
26</data>
27<datacheck nonewline="yes">
28HTTP/1.1 200 OK
29Date: Tue, 09 Nov 2010 14:49:00 GMT
30Server: test-server/fake
31Content-Length: 123456
32Transfer-Encoding: chunked
33Content-Type: text/html
34Funny-head: yesyes
35
36chunked data fun
37</datacheck>
38</reply>
39
40#
41# Client-side
42<client>
43<server>
44http
45</server>
46<name>
47HTTP/1.1 with chunked AND Content-Length headers
48</name>
49<command>
50http://%HOSTIP:%HTTPPORT/%TESTNUMBER
51</command>
52</client>
53
54#
55# Verify data after the test has been "shot"
56<verify>
57<protocol>
58GET /%TESTNUMBER HTTP/1.1
59Host: %HOSTIP:%HTTPPORT
60User-Agent: curl/%VERSION
61Accept: */*
62
63</protocol>
64</verify>
65</testcase>
66