Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test207
bloba5e8de5cf2a7184d0977c25658d04a1a92c5a49a
1 <testcase>
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
12 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
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
21 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
22 </datacheck>
23 </reply>
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>
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
47 Host: %HOSTIP:%HTTPPORT
48 Accept: */*
50 </protocol>
52 # curl: (18) transfer closed with outstanding read data remaining
53 # 18 == CURLE_PARTIAL_FILE
54 <errorcode>
56 </errorcode>
57 </verify>
58 </testcase>