A minor "syntax error" in numerous test files corrected
[platform/upstream/curl.git] / tests / data / test168
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\r
7 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"\r
8 \r
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\r
15 WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"\r
16 \r
17 you should ignore this data too
18 </data1000>
19
20 <data1001>
21 HTTP/1.1 200 OK swsclose\r
22 Server: no
23 \r
24 Nice auth sir!
25 </data1001>
26
27 <datacheck>
28 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose\r
29 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"\r
30 \r
31 HTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose\r
32 WWW-Authenticate: Digest realm="realmweirdo", nonce="123456"\r
33 \r
34 HTTP/1.1 200 OK swsclose\r
35 Server: no
36 \r
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\r
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\r
62 Host: data.from.server.requiring.digest.hohoho.com\r
63 Pragma: no-cache\r
64 Accept: */*\r
65 \r
66 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1\r
67 Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"\r
68 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\r
69 Host: data.from.server.requiring.digest.hohoho.com\r
70 Pragma: no-cache\r
71 Accept: */*\r
72 \r
73 GET http://data.from.server.requiring.digest.hohoho.com/168 HTTP/1.1\r
74 Proxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/168", response="fb8608e00ad9239a3dedb14bc8575976"\r
75 Authorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/168", response="ca87f2d768a231e2d637a55698d5c416"\r
76 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\r
77 Host: data.from.server.requiring.digest.hohoho.com\r
78 Pragma: no-cache\r
79 Accept: */*\r
80 \r
81 </protocol>
82 </verify>