xref: /curl/tests/data/test1479 (revision df1fcb41)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP/0.9
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Content-Length: 5
15
16Data
17</data>
18<data2>
19Data
20Data
21Data
22</data2>
23<datacheck>
24</datacheck>
25</reply>
26
27#
28# Client-side
29<client>
30<server>
31http
32</server>
33<name>
34HTTP/1.1 response followed by an HTTP/0.9 response over the same connection
35</name>
36<command>
37http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
38</command>
39</client>
40
41#
42# Verify data after the test has been "shot"
43<verify>
44<protocol>
45GET /%TESTNUMBER HTTP/1.1
46Host: %HOSTIP:%HTTPPORT
47User-Agent: curl/%VERSION
48Accept: */*
49
50GET /%TESTNUMBER0002 HTTP/1.1
51Host: %HOSTIP:%HTTPPORT
52User-Agent: curl/%VERSION
53Accept: */*
54
55</protocol>
56
57# Hyper curl returns unsupported protocol
58# built-in curl returns weird_server_reply
59<errorcode>
60%if hyper
611
62%else
638
64%endif
65</errorcode>
66</verify>
67</testcase>
68