2019-10-30 04:43:14 -04: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
|
2020-08-19 18:34:44 -04:00
|
|
|
ETag: W/"asdf"
|
2019-10-30 04:43:14 -04:00
|
|
|
|
2021-06-07 05:26:32 -04:00
|
|
|
40
|
|
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
|
|
30
|
|
|
|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
|
|
|
21;heresatest=moooo
|
2019-10-30 04:43:14 -04:00
|
|
|
cccccccccccccccccccccccccccccccc
|
2021-06-07 05:26:32 -04:00
|
|
|
|
|
|
|
0
|
|
|
|
chunky-trailer: header data
|
|
|
|
|
2019-10-30 04:43:14 -04:00
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
Check if --etag-save saved correct etag to a file
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-save log/etag%TESTNUMBER
|
2019-10-30 04:43:14 -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
|
2019-10-30 04:43:14 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2019-10-30 04:43:14 -04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
<file name="log/etag%TESTNUMBER">
|
2020-08-19 18:34:44 -04:00
|
|
|
W/"asdf"
|
2019-10-30 04:43:14 -04:00
|
|
|
</file>
|
|
|
|
</verify>
|
|
|
|
|
|
|
|
</testcase>
|