~ubuntu-branches/ubuntu/warty/curl/warty

« back to all changes in this revision

Viewing changes to tests/data/test164

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Server-side
 
2
# This particular response is an exact excerpt from an actual Apache
 
3
# server when asked for a 0-10,12-15 range.
 
4
<reply>
 
5
<data>
 
6
HTTP/1.1 206 Partial Content swsclose
 
7
Date: Sat, 24 Apr 2004 09:24:49 GMT
 
8
Server: Apache/1.3.29 (Unix) mod_throttle/3.1.2 PHP/4.3.4 mod_fastcgi/2.4.0
 
9
Last-Modified: Tue, 23 Mar 2004 08:23:14 GMT
 
10
ETag: "53814a-ec5-405ff3f2"
 
11
Accept-Ranges: bytes
 
12
Content-Length: 187
 
13
Content-Type: multipart/byteranges; boundary=408a326132c
 
14
 
 
15
--408a326132c
 
16
Content-type: text/html
 
17
Content-range: bytes 0-10/3781
 
18
 
 
19
<html>
 
20
<hea
 
21
 
 
22
--408a326132c
 
23
Content-type: text/html
 
24
Content-range: bytes 12-15/3781
 
25
 
 
26
>
 
27
<t
 
28
 
 
29
--408a326132c--
 
30
</data>
 
31
</reply>
 
32
 
 
33
# Client-side
 
34
<client>
 
35
<server>
 
36
http
 
37
</server>
 
38
 <name>
 
39
HTTP range with multiple ranges
 
40
 </name>
 
41
 <command>
 
42
http://%HOSTIP:%HOSTPORT/want/164 -r 0-10,12-15
 
43
</command>
 
44
</test>
 
45
 
 
46
# Verify data after the test has been "shot"
 
47
<verify>
 
48
<strip>
 
49
^User-Agent:.*
 
50
</strip>
 
51
<protocol>
 
52
GET /want/164 HTTP/1.1
 
53
Range: bytes=0-10,12-15
 
54
Host: 127.0.0.1:8999
 
55
Pragma: no-cache
 
56
Accept: */*
 
57
 
 
58
</protocol>
 
59
</verify>