~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to tests/data/test38

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2002-03-12 19:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20020312190621-iqx7k9cipo5d0ifr
Tags: upstream-7.9.5
ImportĀ upstreamĀ versionĀ 7.9.5

Show diffs side-by-side

added added

removed removed

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