2020-08-20 06:34:44 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 200 funky chunky!
|
|
|
|
Server: fakeit/0.9 fakeitbad/1.0
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Trailer: chunky-trailer
|
|
|
|
Connection: mooo
|
|
|
|
ETag:
|
|
|
|
|
2021-06-07 17:27:41 +08:00
|
|
|
40
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
|
|
30
|
|
|
|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
|
|
|
21;heresatest=moooo
|
2020-08-20 06:34:44 +08:00
|
|
|
cccccccccccccccccccccccccccccccc
|
2021-06-07 17:27:41 +08:00
|
|
|
|
|
|
|
0
|
|
|
|
chunky-trailer: header data
|
|
|
|
|
2020-08-20 06:34:44 +08:00
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
--etag-save with blank incoming header
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-save log/etag%TESTNUMBER
|
2020-08-20 06:34:44 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2020-08-20 06:34:44 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2020-08-20 06:34:44 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/etag%TESTNUMBER">
|
2020-08-20 06:34:44 +08:00
|
|
|
</file>
|
|
|
|
</verify>
|
|
|
|
|
|
|
|
</testcase>
|