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