2016-08-18 17:44:45 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP HEAD
|
2018-12-17 22:46:56 +08:00
|
|
|
HTTP/0.9
|
2016-08-18 17:44:45 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
No headers at all, just data swsclose
|
|
|
|
|
|
|
|
Let's get
|
|
|
|
|
|
|
|
a little
|
|
|
|
|
|
|
|
so that
|
|
|
|
|
|
|
|
we
|
|
|
|
|
|
|
|
have
|
|
|
|
|
|
|
|
some
|
|
|
|
|
|
|
|
test
|
|
|
|
|
|
|
|
data to
|
|
|
|
|
|
|
|
verify
|
|
|
|
</data>
|
2016-09-09 21:57:44 +08:00
|
|
|
# make sure no data is written
|
|
|
|
<datacheck nonewline="yes">
|
|
|
|
|
|
|
|
</datacheck>
|
2016-08-18 17:44:45 +08:00
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP HEAD, receive no headers only body
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
-I http://%HOSTIP:%HTTPPORT/%TESTNUMBER --http0.9
|
2016-08-18 17:44:45 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
HEAD /%TESTNUMBER HTTP/1.1
|
2016-08-18 17:44:45 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2016-08-18 17:44:45 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2016-09-09 21:57:44 +08:00
|
|
|
<errorcode>
|
|
|
|
8
|
|
|
|
</errorcode>
|
2016-08-18 17:44:45 +08:00
|
|
|
</verify>
|
|
|
|
</testcase>
|