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

« back to all changes in this revision

Viewing changes to tests/data/test65

  • 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
<data>
 
4
HTTP/1.1 401 Authorization Required
 
5
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
6
WWW-Authenticate: Digest realm="testrealm", nonce="2053604145"
 
7
Content-Type: text/html; charset=iso-8859-1
 
8
Content-Length: 26
 
9
 
 
10
This is not the real page
 
11
</data>
 
12
 
 
13
# This is supposed to be returned when the server gets a
 
14
# Authorization: Digest line passed-in from the client
 
15
<data1000>
 
16
HTTP/1.1 401 Still a bad password you moron
 
17
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
18
Content-Type: text/html; charset=iso-8859-1
 
19
Content-Length: 34
 
20
 
 
21
This is not the real page either
 
22
</data1000>
 
23
 
 
24
<datacheck>
 
25
HTTP/1.1 401 Authorization Required
 
26
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
27
WWW-Authenticate: Digest realm="testrealm", nonce="2053604145"
 
28
Content-Type: text/html; charset=iso-8859-1
 
29
Content-Length: 26
 
30
 
 
31
HTTP/1.1 401 Still a bad password you moron
 
32
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
33
Content-Type: text/html; charset=iso-8859-1
 
34
Content-Length: 34
 
35
 
 
36
This is not the real page either
 
37
</datacheck>
 
38
 
 
39
</reply>
 
40
 
 
41
# Client-side
 
42
<client>
 
43
<server>
 
44
http
 
45
</server>
 
46
 <name>
 
47
HTTP with Digest authorization with bad password
 
48
 </name>
 
49
 <command>
 
50
http://%HOSTIP:%HOSTPORT/65 -u testuser:test2pass --digest
 
51
</command>
 
52
</test>
 
53
 
 
54
# Verify data after the test has been "shot"
 
55
<verify>
 
56
<strip>
 
57
^User-Agent:.*
 
58
</strip>
 
59
<protocol>
 
60
GET /65 HTTP/1.1
 
61
Host: 127.0.0.1:8999
 
62
Pragma: no-cache
 
63
Accept: */*
 
64
 
 
65
GET /65 HTTP/1.1
 
66
Authorization: Digest username="testuser", realm="testrealm", nonce="2053604145", uri="/65", response="66d68d3251f1839576ba7c766cf9205b"
 
67
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
 
68
Host: 127.0.0.1:8999
 
69
Pragma: no-cache
 
70
Accept: */*
 
71
 
 
72
</protocol>
 
73
</verify>