Debian Codegraph @

curl/tests/data/test207

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