68 lines
897 B
Plaintext
68 lines
897 B
Plaintext
|
<testcase>
|
||
|
<info>
|
||
|
<keywords>
|
||
|
HTTP
|
||
|
HTTP/0.9
|
||
|
</keywords>
|
||
|
</info>
|
||
|
|
||
|
#
|
||
|
# Server-side
|
||
|
<reply>
|
||
|
<data>
|
||
|
HTTP/1.1 200 OK
|
||
|
Content-Length: 5
|
||
|
|
||
|
Data
|
||
|
</data>
|
||
|
<data2>
|
||
|
Data
|
||
|
Data
|
||
|
Data
|
||
|
</data2>
|
||
|
<datacheck>
|
||
|
</datacheck>
|
||
|
</reply>
|
||
|
|
||
|
#
|
||
|
# Client-side
|
||
|
<client>
|
||
|
<server>
|
||
|
http
|
||
|
</server>
|
||
|
<name>
|
||
|
HTTP/1.1 response followed by an HTTP/0.9 response over the same connection
|
||
|
</name>
|
||
|
<command>
|
||
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
|
||
|
</command>
|
||
|
</client>
|
||
|
|
||
|
#
|
||
|
# Verify data after the test has been "shot"
|
||
|
<verify>
|
||
|
<protocol>
|
||
|
GET /%TESTNUMBER HTTP/1.1
|
||
|
Host: %HOSTIP:%HTTPPORT
|
||
|
User-Agent: curl/%VERSION
|
||
|
Accept: */*
|
||
|
|
||
|
GET /%TESTNUMBER0002 HTTP/1.1
|
||
|
Host: %HOSTIP:%HTTPPORT
|
||
|
User-Agent: curl/%VERSION
|
||
|
Accept: */*
|
||
|
|
||
|
</protocol>
|
||
|
|
||
|
# Hyper curl returns unsupported protocol
|
||
|
# built-in curl returns weird_server_reply
|
||
|
<errorcode>
|
||
|
%if hyper
|
||
|
1
|
||
|
%else
|
||
|
8
|
||
|
%endif
|
||
|
</errorcode>
|
||
|
</verify>
|
||
|
</testcase>
|