blob: 2dc82655583c78f4b29bd24622c2f00b7c35ca2d [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6CURLPAUSE_RECV
7chunked Transfer-Encoding
8Trailer:
9</keywords>
10</info>
11
12# Server-side
13<reply>
14<data>
15HTTP/1.1 200 OK swsclose
16Transfer-Encoding: chunked
17Trailer: MyCoolTrailerHeader
18
194
20data
215
22d474
23
240
25MyCoolTrailerHeader: amazingtrailer
26
27</data>
28<datacheck>
29HTTP/1.1 200 OK swsclose
30Transfer-Encoding: chunked
31Trailer: MyCoolTrailerHeader
32
33Got 4 bytes but pausing!
34datad474
35MyCoolTrailerHeader: amazingtrailer
36</datacheck>
37<servercmd>
38writedelay: 10
39</servercmd>
40</reply>
41# Client-side
42<client>
43<server>
44http
45</server>
46<tool>
47lib%TESTNUMBER
48</tool>
49 <name>
50chunked with trailers and pausing the receive
51 </name>
52 <command>
53http://%HOSTIP:%HTTPPORT/%TESTNUMBER
54</command>
55</client>
56
57# Verify data after the test has been "shot"
58<verify>
59<protocol>
60GET /%TESTNUMBER HTTP/1.1
61Host: %HOSTIP:%HTTPPORT
62Accept: */*
63
64</protocol>
65</verify>
66</testcase>