~ubuntu-branches/ubuntu/feisty/curl/feisty

« back to all changes in this revision

Viewing changes to tests/data/test88

  • 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
<reply>
 
3
<servercmd>
 
4
auth_required
 
5
</servercmd>
 
6
<data>
 
7
HTTP/1.1 401 Authorization Required swsclose
 
8
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
9
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
 
10
Content-Type: text/html; charset=iso-8859-1
 
11
Connection: close
 
12
 
 
13
This is not the real page
 
14
</data>
 
15
 
 
16
# This is supposed to be returned when the server gets a
 
17
# Authorization: Digest line passed-in from the client
 
18
<data1000>
 
19
HTTP/1.1 200 OK swsclose
 
20
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
21
Content-Type: text/html; charset=iso-8859-1
 
22
Connection: close
 
23
 
 
24
This IS the real page!
 
25
</data1000>
 
26
 
 
27
<datacheck>
 
28
HTTP/1.1 401 Authorization Required swsclose
 
29
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
30
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
 
31
Content-Type: text/html; charset=iso-8859-1
 
32
Connection: close
 
33
 
 
34
HTTP/1.1 200 OK swsclose
 
35
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
36
Content-Type: text/html; charset=iso-8859-1
 
37
Connection: close
 
38
 
 
39
This IS the real page!
 
40
</datacheck>
 
41
 
 
42
</reply>
 
43
 
 
44
# Client-side
 
45
<client>
 
46
<server>
 
47
http
 
48
</server>
 
49
 <name>
 
50
HTTP PUT with Digest authorization
 
51
 </name>
 
52
 <command>
 
53
http://%HOSTIP:%HOSTPORT/88 -T log/put88 -u testuser:testpass --digest
 
54
</command>
 
55
<file name="log/put88">
 
56
This is data we upload with PUT
 
57
a second line
 
58
line three
 
59
four is the number of lines
 
60
</file>
 
61
</client>
 
62
 
 
63
# Verify data after the test has been "shot"
 
64
<verify>
 
65
<strip>
 
66
^User-Agent:.*
 
67
</strip>
 
68
<protocol>
 
69
HEAD /88 HTTP/1.1
 
70
Host: 127.0.0.1:8999
 
71
Pragma: no-cache
 
72
Accept: */*
 
73
 
 
74
PUT /88 HTTP/1.1
 
75
Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/88", response="78a49fa53d0c228778297687d4168e71"
 
76
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
 
77
Host: 127.0.0.1:8999
 
78
Pragma: no-cache
 
79
Accept: */*
 
80
Content-Length: 85
 
81
Expect: 100-continue
 
82
 
 
83
This is data we upload with PUT
 
84
a second line
 
85
line three
 
86
four is the number of lines
 
87
</protocol>
 
88
</verify>