2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2012-11-19 11:54:52 -05:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-07-16 17:00:50 -04:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK swsclose
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-07-16 17:00:50 -04:00
|
|
|
Content-Length: -6
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
moooooooooooo
|
|
|
|
</data>
|
2018-01-08 23:24:48 -05:00
|
|
|
<datacheck>
|
2021-05-28 17:46:03 -04:00
|
|
|
%if hyper
|
|
|
|
%else
|
2018-01-08 23:24:48 -05:00
|
|
|
HTTP/1.1 200 OK swsclose
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2021-05-28 17:46:03 -04:00
|
|
|
%endif
|
2018-01-08 23:24:48 -05:00
|
|
|
</datacheck>
|
2004-07-16 17:00:50 -04:00
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
2018-01-08 23:24:48 -05:00
|
|
|
HTTP response with negative Content-Length
|
2004-07-16 17:00:50 -04:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2004-07-16 17:00:50 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2007-09-14 15:32:31 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2004-07-16 17:00:50 -04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2021-05-28 17:46:03 -04:00
|
|
|
|
|
|
|
# Hyper curl returns unsupported protocol
|
|
|
|
# bullt-in curl returns weird_server_reply
|
2018-01-08 23:24:48 -05:00
|
|
|
<errorcode>
|
2021-05-28 17:46:03 -04:00
|
|
|
%if hyper
|
|
|
|
1
|
|
|
|
%else
|
2018-01-08 23:24:48 -05:00
|
|
|
8
|
2021-05-28 17:46:03 -04:00
|
|
|
%endif
|
2018-01-08 23:24:48 -05:00
|
|
|
</errorcode>
|
2004-07-16 17:00:50 -04:00
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|