Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test167
blobd2ea126fba48dd9a6ac4fc7c376573d61f00ae49
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 HTTP proxy Basic auth
8 HTTP Digest auth
9 </keywords>
10 </info>
12 # Server-side
13 <reply>
14 <data>
15 HTTP/1.1 401 Authorization Required swsclose
16 WWW-Authenticate: Digest realm="weirdorealm", nonce="12345"
18 </data>
20 <data1000>
21 HTTP/1.1 200 OK swsclose
22 Server: no
23 Content-Length: 15
25 Nice auth sir!
26 </data1000>
28 <datacheck>
29 HTTP/1.1 401 Authorization Required swsclose
30 WWW-Authenticate: Digest realm="weirdorealm", nonce="12345"
32 HTTP/1.1 200 OK swsclose
33 Server: no
34 Content-Length: 15
36 Nice auth sir!
37 </datacheck>
38 </reply>
40 # Client-side
41 <client>
42 <server>
43 http
44 </server>
45 <features>
46 crypto
47 </features>
48  <name>
49 HTTP with proxy-requiring-Basic to site-requiring-Digest
50  </name>
51  <command>
52 http://data.from.server.requiring.digest.hohoho.com/167 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --digest --user digest:alot
53 </command>
54 </client>
56 # Verify data after the test has been "shot"
57 <verify>
58 <strip>
59 ^User-Agent: curl/.*
60 </strip>
61 <protocol>
62 GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1
63 Proxy-Authorization: Basic Zm9vOmJhcg==
64 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
65 Host: data.from.server.requiring.digest.hohoho.com
66 Pragma: no-cache
67 Accept: */*
68 Proxy-Connection: Keep-Alive
70 GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1
71 Proxy-Authorization: Basic Zm9vOmJhcg==
72 Authorization: Digest username="digest", realm="weirdorealm", nonce="12345", uri="/167", response="13c7c02a252cbe1c46d8669898a3be26"
73 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
74 Host: data.from.server.requiring.digest.hohoho.com
75 Pragma: no-cache
76 Accept: */*
77 Proxy-Connection: Keep-Alive
79 </protocol>
80 </verify>
81 </testcase>