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>
|
2018-12-17 22:46:56 +08:00
|
|
|
-I http://%HOSTIP:%HTTPPORT/1144 --http0.9
|
2016-08-18 17:44:45 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
HEAD /1144 HTTP/1.1
|
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2016-09-09 21:57:44 +08:00
|
|
|
<errorcode>
|
|
|
|
8
|
|
|
|
</errorcode>
|
2016-08-18 17:44:45 +08:00
|
|
|
</verify>
|
|
|
|
</testcase>
|