xref: /aosp_15_r20/external/curl/tests/data/test415 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
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:
16-6
17Content-Type: text/html
18Funny-head: yesyes
19
20moooooooooooo
21</data>
22<datacheck>
23%if hyper
24%else
25HTTP/1.1 200 OK swsclose
26Date: Tue, 09 Nov 2010 14:49:00 GMT
27%endif
28</datacheck>
29</reply>
30
31#
32# Client-side
33<client>
34<server>
35http
36</server>
37<name>
38HTTP response with control code then negative Content-Length
39</name>
40<command>
41http://%HOSTIP:%HTTPPORT/%TESTNUMBER
42</command>
43</client>
44
45#
46# Verify data after the test has been "shot"
47<verify>
48<protocol>
49GET /%TESTNUMBER HTTP/1.1
50Host: %HOSTIP:%HTTPPORT
51User-Agent: curl/%VERSION
52Accept: */*
53
54</protocol>
55
56# Hyper curl returns unsupported protocol
57# built-in curl returns weird_server_reply
58<errorcode>
59%if hyper
601
61%else
628
63%endif
64</errorcode>
65</verify>
66</testcase>
67