Debian Codegraph @

curl/tests/data/test168

raw
1 # Server-side
2 <reply>
3
4 # this is returned first since we get no proxy-auth
5 <data>
6 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
7 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
8
9 And you should ignore this data.
10 </data>
11
12 # then this is returned since we get no server-auth
13 <data1000>
14 HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
15 WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"
16
17 you should ignore this data too
18 </data1000>
19
20 <data1001>
21 HTTP/1.1 200 OK swsclose
22 Server: no
23
24 Nice auth sir!
25 </data1001>
26
27 <datacheck>
28 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
29 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
30
31 HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose
32 WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"
33
34 HTTP/1.1 200 OK swsclose
35 Server: no
36
37 Nice auth sir!
38 </datacheck>
39 </reply>
40
41 # Client-side
42 <client>
43 <server>
44 http
45 </server>
46 <name>
47 HTTP with proxy-requiring-Digest to site-requiring-Digest
48 </name>
49 <command>
50 http://data.from.server.requiring.digest.hohoho.com/168 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-digest --digest --user digest:alot
51 </command>
52 </client>
53
54 # Verify data after the test has been "shot"
55 <verify>
56 <strip>
57 ^User-Agent: curl/.*
58 </strip>
59 <protocol>
60 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
61 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3
62 Host: data.from.server.requiring.digest.hohoho.com
63 Pragma: no-cache
64 Accept: */*
65 Proxy-Connection: Keep-Alive
66
67 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
68 Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"
69 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3
70 Host: data.from.server.requiring.digest.hohoho.com
71 Pragma: no-cache
72 Accept: */*
73 Proxy-Connection: Keep-Alive
74
75 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1
76 Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"
77 Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/168", response="ca87f2d768a231e2d637a55698d5c416"
78 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.3
79 Host: data.from.server.requiring.digest.hohoho.com
80 Pragma: no-cache
81 Accept: */*
82 Proxy-Connection: Keep-Alive
83
84 </protocol>
85 </verify>