2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2012-11-20 00:54:52 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-07-17 05:00:50 +08:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK swsclose
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Content-Length: -6
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
moooooooooooo
|
|
|
|
</data>
|
2018-01-09 12:24:48 +08:00
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 200 OK swsclose
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
</datacheck>
|
2004-07-17 05:00:50 +08:00
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
2018-01-09 12:24:48 +08:00
|
|
|
HTTP response with negative Content-Length
|
2004-07-17 05:00:50 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 16:08:38 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/178
|
2004-07-17 05:00:50 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
GET /178 HTTP/1.1
|
2007-09-15 03:32:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2004-07-17 05:00:50 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2018-01-09 12:24:48 +08:00
|
|
|
<errorcode>
|
|
|
|
8
|
|
|
|
</errorcode>
|
2004-07-17 05:00:50 +08:00
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|