test1144: verify HEAD with body-only response

This commit is contained in:
Daniel Stenberg 2016-08-18 11:44:45 +02:00
parent cf582d7bc0
commit cdd61dc35f
2 changed files with 63 additions and 1 deletions

62
tests/data/test1144 Normal file
View file

@ -0,0 +1,62 @@
<testcase>
<info>
<keywords>
HTTP
HTTP HEAD
</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>
</reply>
#
# Client-side
<client>
<server>
http
</server>
<name>
HTTP HEAD, receive no headers only body
</name>
<command>
-I http://%HOSTIP:%HTTPPORT/1144
</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>
</verify>
</testcase>