2018-11-28 00:30:44 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
Content-Encoding
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2018-11-28 00:30:44 +08:00
|
|
|
Content-Type: text/html
|
|
|
|
Content-Encoding: none
|
|
|
|
Content-Length: 38
|
|
|
|
|
2021-06-07 17:15:21 +08:00
|
|
|
Q- What did 0 say to 8? A- Nice Belt!
|
2018-11-28 00:30:44 +08:00
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
|
|
|
|
# we're actually more interested in any compression support but this is the
|
|
|
|
# best we can do right now
|
|
|
|
<features>
|
|
|
|
libz
|
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
HTTP with "Content-Encoding: none
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/hello/%TESTNUMBER --compressed
|
2018-11-28 00:30:44 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^Accept-Encoding:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /hello/%TESTNUMBER HTTP/1.1
|
2018-11-28 00:30:44 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2018-11-28 00:30:44 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|