Debian Codegraph @

curl/tests/data/test65

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