~ubuntu-branches/ubuntu/dapper/curl/dapper

« back to all changes in this revision

Viewing changes to tests/data/test86

  • 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
#
 
2
# Server-side
 
3
<reply>
 
4
<data nocheck=1>
 
5
HTTP/1.1 200 OK
 
6
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
7
Server: test-server/fake
 
8
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
 
9
ETag: "21025-dc7-39462498"
 
10
Accept-Ranges: bytes
 
11
Content-Length: 6
 
12
Connection: close
 
13
Content-Type: text/html
 
14
Funny-head: yesyes
 
15
 
 
16
<foo>
 
17
</data>
 
18
<data1>
 
19
HTTP/1.0 200 OK
 
20
Content-Type: text/html
 
21
Funny-head: swsclose
 
22
 
 
23
crap data
 
24
</data1>
 
25
<data2>
 
26
HTTP/1.0 200 OK
 
27
Content-Type: text/html
 
28
Funny-head: swsclose
 
29
 
 
30
crap data
 
31
</data2>
 
32
<data3>
 
33
HTTP/1.0 200 OK
 
34
Content-Type: text/html
 
35
Funny-head: swsclose
 
36
 
 
37
crap data
 
38
</data3>
 
39
</reply>
 
40
 
 
41
#
 
42
# Client-side
 
43
<client>
 
44
<server>
 
45
http
 
46
</server>
 
47
 <name>
 
48
HTTP, urlglob []-retrieval and -o #[num] usage
 
49
 </name>
 
50
 <command option=no-output>
 
51
"http://%HOSTIP:%HOSTPORT/[860001-860003]" -o "log/dumpit#1.dump"
 
52
</command>
 
53
</client>
 
54
 
 
55
#
 
56
# Verify data after the test has been "shot"
 
57
<verify>
 
58
<strip>
 
59
^User-Agent:.*
 
60
</strip>
 
61
<protocol>
 
62
GET /860001 HTTP/1.1
 
63
User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
 
64
Host: 127.0.0.1:8999
 
65
Pragma: no-cache
 
66
Accept: */*
 
67
 
 
68
GET /860002 HTTP/1.1
 
69
User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
 
70
Host: 127.0.0.1:8999
 
71
Pragma: no-cache
 
72
Accept: */*
 
73
 
 
74
GET /860003 HTTP/1.1
 
75
User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
 
76
Host: 127.0.0.1:8999
 
77
Pragma: no-cache
 
78
Accept: */*
 
79
 
 
80
</protocol>
 
81
 
 
82
# we check the second file
 
83
<file name="log/dumpit860002.dump">
 
84
HTTP/1.0 200 OK
 
85
Content-Type: text/html
 
86
Funny-head: swsclose
 
87
 
 
88
crap data
 
89
</file>
 
90
</verify>