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