xref: /curl/tests/data/test266 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6chunked Transfer-Encoding
7DELAY
8</keywords>
9</info>
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 funky chunky!
15Server: fakeit/0.9 fakeitbad/1.0
16Transfer-Encoding: chunked
17Trailer: chunky-trailer
18Connection: mooo
19
2040
21aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2230
23bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
2421;heresatest=moooo
25cccccccccccccccccccccccccccccccc
26
270
28chunky-trailer: header data
29
30</data>
31<datacheck>
32HTTP/1.1 200 funky chunky!
33Server: fakeit/0.9 fakeitbad/1.0
34Transfer-Encoding: chunked
35Trailer: chunky-trailer
36Connection: mooo
37
38aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
39chunky-trailer: header data
40</datacheck>
41<servercmd>
42writedelay: 10
43</servercmd>
44</reply>
45
46#
47# Client-side
48<client>
49<server>
50http
51</server>
52<name>
53HTTP GET with chunked Transfer-Encoding and chunked trailer
54</name>
55<command>
56http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
57</command>
58</client>
59
60#
61# Verify data after the test has been "shot"
62<verify>
63<protocol>
64GET /%TESTNUMBER HTTP/1.1
65Host: %HOSTIP:%HTTPPORT
66User-Agent: curl/%VERSION
67Accept: */*
68
69</protocol>
70<file name="%LOGDIR/heads%TESTNUMBER">
71HTTP/1.1 200 funky chunky!
72Server: fakeit/0.9 fakeitbad/1.0
73Transfer-Encoding: chunked
74Trailer: chunky-trailer
75Connection: mooo
76
77chunky-trailer: header data
78</file>
79</verify>
80
81</testcase>
82