Debian Codegraph @

curl/tests/data/test38

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