Debian Codegraph @

curl/tests/data/test64

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 swsclose
12 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
13 WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
14 Content-Type: text/html; charset=iso-8859-1
15
16 This is not the real page
17 </data>
18
19 # This is supposed to be returned when the server gets a
20 # Authorization: Digest line passed-in from the client
21 <data1000>
22 HTTP/1.1 200 OK swsclose
23 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
24 Content-Type: text/html; charset=iso-8859-1
25
26 This IS the real page!
27 </data1000>
28
29 <datacheck>
30 HTTP/1.1 401 Authorization Required swsclose
31 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
32 WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
33 Content-Type: text/html; charset=iso-8859-1
34
35 HTTP/1.1 200 OK swsclose
36 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
37 Content-Type: text/html; charset=iso-8859-1
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 with Digest authorization
51 </name>
52 <command>
53 http://%HOSTIP:%HTTPPORT/64 -u testuser:testpass --digest
54 </command>
55 </client>
56
57 # Verify data after the test has been "shot"
58 <verify>
59 <strip>
60 ^User-Agent:.*
61 </strip>
62 <protocol>
63 GET /64 HTTP/1.1
64 Host: 127.0.0.1:%HTTPPORT
65 Accept: */*
66
67 GET /64 HTTP/1.1
68 Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/64", response="c55f7f30d83d774a3d2dcacf725abaca"
69 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
70 Host: 127.0.0.1:%HTTPPORT
71 Accept: */*
72
73 </protocol>
74 </verify>