85f9af6ad26eb77c0d7caa5792460127db33c9aa
[platform/upstream/curl.git] / tests / data / test207
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8 #
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 200 funky chunky! swsclose
13 Server: fakeit/0.9 fakeitbad/1.0
14 Transfer-Encoding: chunked
15 Connection: mooo
16
17 41\r
18 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
19 \r
20 </data>
21 <datacheck>
22 HTTP/1.1 200 funky chunky! swsclose
23 Server: fakeit/0.9 fakeitbad/1.0
24 Transfer-Encoding: chunked
25 Connection: mooo
26
27 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
28 </datacheck>
29 </reply>
30
31 #
32 # Client-side
33 <client>
34 <server>
35 http
36 </server>
37  <name>
38 HTTP GET with chunked Transfer-Encoding closed pre-maturely
39  </name>
40  <command>
41 http://%HOSTIP:%HTTPPORT/207
42 </command>
43 </client>
44
45 #
46 # Verify data after the test has been "shot"
47 <verify>
48 <strip>
49 ^User-Agent:.*
50 </strip>
51 <protocol>
52 GET /207 HTTP/1.1\r
53 Host: %HOSTIP:%HTTPPORT\r
54 Accept: */*\r
55 \r
56 </protocol>
57
58 # curl: (18) transfer closed with outstanding read data remaining
59 # 18 == CURLE_PARTIAL_FILE
60 <errorcode>
61 18
62 </errorcode>
63 </verify>
64 </testcase>