Imported Upstream version 7.48.0
[platform/upstream/curl.git] / tests / data / test38
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 Resume
7 FAILURE
8 </keywords>
9 </info>
10 # Server-side
11 <reply>
12 <data nocheck="yes">
13 HTTP/1.0 200 Mooo
14 Date: Mon, 13 Nov 2000 13:41:09 GMT
15 Server: myown/1.0
16 Connection: close
17
18 todelooooo lalalala yada yada, we know nothing about ranges ;-)
19 </data>
20 </reply>
21
22 # Client-side
23 <client>
24 <server>
25 http
26 </server>
27  <name>
28 HTTP resume request without server supporting it
29  </name>
30  <command option="no-output">
31 http://%HOSTIP:%HTTPPORT/want/38 -C - --no-include -o log/fewl.txt
32 </command>
33 <file name="log/fewl.txt">
34 This text is here to simulate a partly downloaded file to resume
35 download on.
36 </file>
37 </client>
38
39 # Verify data after the test has been "shot"
40 <verify>
41 <errorcode>
42 33
43 </errorcode>
44 <strip>
45 ^User-Agent:.*
46 </strip>
47 <protocol>
48 GET /want/38 HTTP/1.1\r
49 Host: %HOSTIP:%HTTPPORT\r
50 Range: bytes=78-\r
51 Accept: */*\r
52 \r
53 </protocol>
54
55 # the download target file must remain untouched
56 <file name="log/fewl.txt">
57 This text is here to simulate a partly downloaded file to resume
58 download on.
59 </file>
60 </verify>
61 </testcase>