Base code merged to SPIN 2.4
[platform/upstream/curl.git] / tests / data / test1042
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 Resume
7 FAILURE
8 </keywords>
9 </info>
10
11 # Server-side
12 <reply>
13 # Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
14 <data>
15 HTTP/1.1 200 OK\r
16 Connection: close\r
17 Content-Length: 100\r
18 Content-Type: text/plain\r
19 \r
20 012345678
21 012345678
22 012345678
23 012345678
24 012345678
25 012345678
26 012345678
27 012345678
28 012345678
29 012345678
30 </data>
31
32 # The file data that exists at the start of the test must be included in
33 # the verification.
34 <datacheck>
35 012345678
36 012345678
37 012345678
38 012345678
39 012345678
40 012345678
41 012345678
42 012345678
43 012345678
44 012345678
45 HTTP/1.1 200 OK\r
46 Connection: close\r
47 Content-Length: 100\r
48 Content-Type: text/plain\r
49 \r
50 </datacheck>
51 </reply>
52
53 # Client-side
54 <client>
55 <server>
56 http
57 </server>
58  <name>
59 HTTP GET beyond end of entirely-downloaded file, no server resume
60  </name>
61  <command>
62 http://%HOSTIP:%HTTPPORT/1042 -C 200
63 </command>
64 <file name="log/curl1042.out">
65 012345678
66 012345678
67 012345678
68 012345678
69 012345678
70 012345678
71 012345678
72 012345678
73 012345678
74 012345678
75 </file>
76 </client>
77
78 # Verify data after the test has been "shot"
79 <verify>
80 <errorcode>
81 33
82 </errorcode>
83 <strip>
84 ^User-Agent:.*
85 </strip>
86 <protocol>
87 GET /1042 HTTP/1.1\r
88 Range: bytes=200-\r
89 Host: %HOSTIP:%HTTPPORT\r
90 Accept: */*\r
91 \r
92 </protocol>
93 </verify>
94 </testcase>