blob: 4f5f359d803ba6da05d47e422918b3e693ea263b [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6chunked Transfer-Encoding
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 funky chunky!
14Server: fakeit/0.9 fakeitbad/1.0
15Transfer-Encoding: chunked
16Trailer: chunky-trailer
17Connection: mooo
18
1940
20aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2130
22bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
2321;heresatest=moooo
24cccccccccccccccccccccccccccccccc
25
260
27chunky-trailer: header data
28
29</data>
30<datacheck>
31HTTP/1.1 200 funky chunky!
32Server: fakeit/0.9 fakeitbad/1.0
33Transfer-Encoding: chunked
34Trailer: chunky-trailer
35Connection: mooo
36
37aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
38chunky-trailer: header data
39</datacheck>
40<servercmd>
41writedelay: 10
42</servercmd>
43</reply>
44
45#
46# Client-side
47<client>
48<server>
49http
50</server>
51 <name>
52HTTP GET with chunked Transfer-Encoding and chunked trailer
53 </name>
54 <command>
55http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D log/heads%TESTNUMBER
56</command>
57</client>
58
59#
60# Verify data after the test has been "shot"
61<verify>
62<protocol>
63GET /%TESTNUMBER HTTP/1.1
64Host: %HOSTIP:%HTTPPORT
65User-Agent: curl/%VERSION
66Accept: */*
67
68</protocol>
69<file name="log/heads%TESTNUMBER">
70HTTP/1.1 200 funky chunky!
71Server: fakeit/0.9 fakeitbad/1.0
72Transfer-Encoding: chunked
73Trailer: chunky-trailer
74Connection: mooo
75
76chunky-trailer: header data
77</file>
78</verify>
79
80</testcase>