| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
HTTP/1.1 401 Authorization Required swsclose |
| 5 |
WWW-Authenticate: Digest realm="weirdorealm", nonce="12345" |
| 6 |
|
| 7 |
</data> |
| 8 |
|
| 9 |
<data1000> |
| 10 |
HTTP/1.1 200 OK swsclose |
| 11 |
Server: no |
| 12 |
|
| 13 |
Nice auth sir! |
| 14 |
</data1000> |
| 15 |
|
| 16 |
<datacheck> |
| 17 |
HTTP/1.1 401 Authorization Required swsclose |
| 18 |
WWW-Authenticate: Digest realm="weirdorealm", nonce="12345" |
| 19 |
|
| 20 |
HTTP/1.1 200 OK swsclose |
| 21 |
Server: no |
| 22 |
|
| 23 |
Nice auth sir! |
| 24 |
</datacheck> |
| 25 |
</reply> |
| 26 |
|
| 27 |
# Client-side |
| 28 |
<client> |
| 29 |
<server> |
| 30 |
http |
| 31 |
</server> |
| 32 |
<name> |
| 33 |
HTTP with proxy-requiring-Basic to site-requiring-Digest |
| 34 |
</name> |
| 35 |
<command> |
| 36 |
http://data.from.server.requiring.digest.hohoho.com/167 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --digest --user digest:alot |
| 37 |
</command> |
| 38 |
</client> |
| 39 |
|
| 40 |
# Verify data after the test has been "shot" |
| 41 |
<verify> |
| 42 |
<strip> |
| 43 |
^User-Agent: curl/.* |
| 44 |
</strip> |
| 45 |
<protocol> |
| 46 |
GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1 |
| 47 |
Proxy-Authorization: Basic Zm9vOmJhcg== |
| 48 |
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 |
| 49 |
Host: data.from.server.requiring.digest.hohoho.com |
| 50 |
Pragma: no-cache |
| 51 |
Accept: */* |
| 52 |
Proxy-Connection: Keep-Alive |
| 53 |
|
| 54 |
GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1 |
| 55 |
Proxy-Authorization: Basic Zm9vOmJhcg== |
| 56 |
Authorization: Digest username="digest", realm="weirdorealm", nonce="12345", uri="/167", response="13c7c02a252cbe1c46d8669898a3be26" |
| 57 |
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 |
| 58 |
Host: data.from.server.requiring.digest.hohoho.com |
| 59 |
Pragma: no-cache |
| 60 |
Accept: */* |
| 61 |
Proxy-Connection: Keep-Alive |
| 62 |
|
| 63 |
</protocol> |
| 64 |
</verify> |