Debian Codegraph @

curl/tests/data/test70

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