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