xref: /curl/tests/data/test178 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK swsclose
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Content-Length: -6
16Content-Type: text/html
17Funny-head: yesyes
18
19moooooooooooo
20</data>
21<datacheck>
22%if hyper
23%else
24HTTP/1.1 200 OK swsclose
25Date: Tue, 09 Nov 2010 14:49:00 GMT
26%endif
27</datacheck>
28</reply>
29
30#
31# Client-side
32<client>
33<server>
34http
35</server>
36<name>
37HTTP response with negative Content-Length
38</name>
39<command>
40http://%HOSTIP:%HTTPPORT/%TESTNUMBER
41</command>
42</client>
43
44#
45# Verify data after the test has been "shot"
46<verify>
47<protocol>
48GET /%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50User-Agent: curl/%VERSION
51Accept: */*
52
53</protocol>
54
55# Hyper curl returns unsupported protocol
56# built-in curl returns weird_server_reply
57<errorcode>
58%if hyper
591
60%else
618
62%endif
63</errorcode>
64</verify>
65</testcase>
66