blob: 3543e751b32bf7f253234b3fbde7a1654b4e4401 [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
16Connection: mooo
17
1840
19aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2030
21bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
2221;heresatest=moooo
23cccccccccccccccccccccccccccccccc
24
250
26%if !hyper
27chunky-trailer: header data
28another-header: yes
29%endif
30
31</data>
32<datacheck>
33HTTP/1.1 200 funky chunky!
34Server: fakeit/0.9 fakeitbad/1.0
35Transfer-Encoding: chunked
36Connection: mooo
37
38aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
39%if !hyper
40chunky-trailer: header data
41another-header: yes
42%endif
43</datacheck>
44<servercmd>
45writedelay: 10
46</servercmd>
47</reply>
48
49#
50# Client-side
51<client>
52<server>
53http
54</server>
55 <name>
56HTTP GET with chunked trailer without Trailer:
57 </name>
58 <command>
59http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D log/heads%TESTNUMBER
60</command>
61</client>
62
63#
64# Verify data after the test has been "shot"
65<verify>
66<protocol>
67GET /%TESTNUMBER HTTP/1.1
68Host: %HOSTIP:%HTTPPORT
69User-Agent: curl/%VERSION
70Accept: */*
71
72</protocol>
73<file name="log/heads%TESTNUMBER">
74HTTP/1.1 200 funky chunky!
75Server: fakeit/0.9 fakeitbad/1.0
76Transfer-Encoding: chunked
77Connection: mooo
78
79%if !hyper
80chunky-trailer: header data
81another-header: yes
82%endif
83</file>
84</verify>
85
86</testcase>