~ubuntu-branches/ubuntu/lucid/curl/lucid-201010031940

« back to all changes in this revision

Viewing changes to tests/data/test1040

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-04-29 11:10:29 UTC
  • mfrom: (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090429111029-2j5eiyokfw2bw049
Tags: 7.19.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Call automake-1.9 with --add-missing --copy --force
* drop debian/patches/security_CVE-2009-0037.patch 
  - this patch is part of 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
# Similar to test92
 
3
<info>
 
4
<keywords>
 
5
HTTP
 
6
HTTP GET
 
7
Resume
 
8
</keywords>
 
9
</info>
 
10
 
 
11
# Server-side
 
12
<reply>
 
13
<data>
 
14
HTTP/1.1 416 Invalid range
 
15
Connection: close
 
16
Content-Length: 0
 
17
 
 
18
</data>
 
19
 
 
20
# The file data that exists at the start of the test must be included in
 
21
# the verification.
 
22
<datacheck>
 
23
012345678
 
24
012345678
 
25
012345678
 
26
012345678
 
27
012345678
 
28
012345678
 
29
012345678
 
30
012345678
 
31
012345678
 
32
012345678
 
33
HTTP/1.1 416 Invalid range
 
34
Connection: close
 
35
Content-Length: 0
 
36
 
 
37
</datacheck>
 
38
 
 
39
</reply>
 
40
 
 
41
# Client-side
 
42
<client>
 
43
<server>
 
44
http
 
45
</server>
 
46
 <name>
 
47
HTTP GET with resume from end of entirely-downloaded file
 
48
 </name>
 
49
 <command>
 
50
http://%HOSTIP:%HTTPPORT/1040 -C -
 
51
</command>
 
52
<file name="log/curl1040.out">
 
53
012345678
 
54
012345678
 
55
012345678
 
56
012345678
 
57
012345678
 
58
012345678
 
59
012345678
 
60
012345678
 
61
012345678
 
62
012345678
 
63
</file>
 
64
</client>
 
65
 
 
66
# Verify data after the test has been "shot"
 
67
<verify>
 
68
<strip>
 
69
^User-Agent:.*
 
70
</strip>
 
71
<protocol>
 
72
GET /1040 HTTP/1.1
 
73
Range: bytes=100-
 
74
Host: %HOSTIP:%HTTPPORT
 
75
Accept: */*
 
76
 
 
77
</protocol>
 
78
</verify>
 
79
</testcase>