2017-03-27 06:14:57 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
CURLPAUSE_RECV
|
2017-05-13 16:35:15 -04:00
|
|
|
chunked Transfer-Encoding
|
2017-03-27 06:14:57 -04:00
|
|
|
Trailer:
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK swsclose
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Trailer: MyCoolTrailerHeader
|
|
|
|
|
|
|
|
4
|
|
|
|
data
|
|
|
|
5
|
|
|
|
d474
|
|
|
|
|
|
|
|
0
|
|
|
|
MyCoolTrailerHeader: amazingtrailer
|
|
|
|
|
|
|
|
</data>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 200 OK swsclose
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Trailer: MyCoolTrailerHeader
|
|
|
|
|
|
|
|
Got 4 bytes but pausing!
|
|
|
|
datad474
|
|
|
|
MyCoolTrailerHeader: amazingtrailer
|
|
|
|
</datacheck>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<tool>
|
2021-03-12 11:38:26 -05:00
|
|
|
lib%TESTNUMBER
|
2017-03-27 06:14:57 -04:00
|
|
|
</tool>
|
|
|
|
<name>
|
|
|
|
chunked with trailers and pausing the receive
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2017-03-27 06:14:57 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2017-03-27 06:14:57 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|