xref: /curl/tests/data/test1540 (revision a383d137)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6CURLPAUSE_RECV
7chunked Transfer-Encoding
8Trailer:
9DELAY
10</keywords>
11</info>
12
13# Server-side
14<reply>
15<data>
16HTTP/1.1 200 OK swsclose
17Transfer-Encoding: chunked
18Trailer: MyCoolTrailerHeader
19
204
21data
225
23d474
24
250
26MyCoolTrailerHeader: amazingtrailer
27
28</data>
29<datacheck>
30HTTP/1.1 200 OK swsclose
31Transfer-Encoding: chunked
32Trailer: MyCoolTrailerHeader
33
34Got bytes but pausing!
35datad474
36MyCoolTrailerHeader: amazingtrailer
37</datacheck>
38<servercmd>
39writedelay: 10
40</servercmd>
41</reply>
42# Client-side
43<client>
44<server>
45http
46</server>
47<tool>
48lib%TESTNUMBER
49</tool>
50<name>
51chunked with trailers and pausing the receive
52</name>
53<command>
54http://%HOSTIP:%HTTPPORT/%TESTNUMBER
55</command>
56</client>
57
58# Verify data after the test has been "shot"
59<verify>
60<protocol>
61GET /%TESTNUMBER HTTP/1.1
62Host: %HOSTIP:%HTTPPORT
63Accept: */*
64
65</protocol>
66</verify>
67</testcase>
68