~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to tests/data/test1042

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-8xjr3o2sgce5s4bg
Tags: 7.19.4-1
* New upstream release
* Fix "newer bdb version" <explain what you changed and why> 
  (Closes: #517277)
* resolve libtool version confusion, thanks to 
  Stefanos Harhalakis <v13@v13.gr>
* add new dependency on libgcrypt11-dev due to newly arising binary symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTP
 
5
HTTP GET
 
6
Resume
 
7
FAILURE
 
8
</keywords>
 
9
</info>
 
10
 
 
11
# Server-side
 
12
<reply>
 
13
# Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
 
14
<data>
 
15
HTTP/1.1 200 OK
 
16
Connection: close
 
17
Content-Length: 100
 
18
Content-Type: text/plain
 
19
 
 
20
012345678
 
21
012345678
 
22
012345678
 
23
012345678
 
24
012345678
 
25
012345678
 
26
012345678
 
27
012345678
 
28
012345678
 
29
012345678
 
30
</data>
 
31
 
 
32
# The file data that exists at the start of the test must be included in
 
33
# the verification.
 
34
<datacheck>
 
35
012345678
 
36
012345678
 
37
012345678
 
38
012345678
 
39
012345678
 
40
012345678
 
41
012345678
 
42
012345678
 
43
012345678
 
44
012345678
 
45
HTTP/1.1 200 OK
 
46
Connection: close
 
47
Content-Length: 100
 
48
Content-Type: text/plain
 
49
 
 
50
</datacheck>
 
51
</reply>
 
52
 
 
53
# Client-side
 
54
<client>
 
55
<server>
 
56
http
 
57
</server>
 
58
 <name>
 
59
HTTP GET from end of entirely-downloaded file, no server resume
 
60
 </name>
 
61
 <command>
 
62
http://%HOSTIP:%HTTPPORT/1042 -C -
 
63
</command>
 
64
<file name="log/curl1042.out">
 
65
012345678
 
66
012345678
 
67
012345678
 
68
012345678
 
69
012345678
 
70
012345678
 
71
012345678
 
72
012345678
 
73
012345678
 
74
012345678
 
75
</file>
 
76
</client>
 
77
 
 
78
# Verify data after the test has been "shot"
 
79
<verify>
 
80
<errorcode>
 
81
33
 
82
</errorcode>
 
83
<strip>
 
84
^User-Agent:.*
 
85
</strip>
 
86
<protocol>
 
87
GET /1042 HTTP/1.1
 
88
Range: bytes=100-
 
89
Host: %HOSTIP:%HTTPPORT
 
90
Accept: */*
 
91
 
 
92
</protocol>
 
93
</verify>
 
94
</testcase>