| 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: NTLM |
| 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 200 Authorizated fine |
| 15 |
Content-Length: 27 |
| 16 |
|
| 17 |
Welcome to the end station |
| 18 |
</data1000> |
| 19 |
|
| 20 |
<data1001> |
| 21 |
HTTP/1.1 407 NTLM type-1 received sending back type-2 |
| 22 |
Server: Microsoft-IIS/5.0 |
| 23 |
Content-Length: 34 |
| 24 |
Content-Type: text/html; charset=iso-8859-1 |
| 25 |
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 26 |
|
| 27 |
This is not the real page either! |
| 28 |
</data1001> |
| 29 |
|
| 30 |
# This is supposed to be returned when the server gets the second |
| 31 |
# Authorization: NTLM line passed-in from the client |
| 32 |
<data1002> |
| 33 |
HTTP/1.1 401 You now need to authenticate with the host |
| 34 |
Server: Microsoft-IIS/5.0 |
| 35 |
WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef" |
| 36 |
Content-Length: 40 |
| 37 |
Content-Type: text/html; charset=iso-8859-1 |
| 38 |
|
| 39 |
We have not authenticated with the server yet |
| 40 |
</data1002> |
| 41 |
|
| 42 |
<datacheck> |
| 43 |
HTTP/1.1 407 NTLM type-1 received sending back type-2 |
| 44 |
Server: Microsoft-IIS/5.0 |
| 45 |
Content-Length: 34 |
| 46 |
Content-Type: text/html; charset=iso-8859-1 |
| 47 |
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 48 |
|
| 49 |
HTTP/1.1 401 You now need to authenticate with the host |
| 50 |
Server: Microsoft-IIS/5.0 |
| 51 |
WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef" |
| 52 |
Content-Length: 40 |
| 53 |
Content-Type: text/html; charset=iso-8859-1 |
| 54 |
|
| 55 |
HTTP/1.1 200 Authorizated fine |
| 56 |
Content-Length: 27 |
| 57 |
|
| 58 |
Welcome to the end station |
| 59 |
</datacheck> |
| 60 |
</reply> |
| 61 |
|
| 62 |
# Client-side |
| 63 |
<client> |
| 64 |
<server> |
| 65 |
http |
| 66 |
</server> |
| 67 |
<features> |
| 68 |
NTLM |
| 69 |
</features> |
| 70 |
<name> |
| 71 |
HTTP with proxy-requiring-NTLM to site-requiring-Digest |
| 72 |
</name> |
| 73 |
<command> |
| 74 |
http://data.from.server.requiring.digest.hohoho.com/169 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --digest --user digest:alot |
| 75 |
</command> |
| 76 |
</client> |
| 77 |
|
| 78 |
# Verify data after the test has been "shot" |
| 79 |
<verify> |
| 80 |
<strip> |
| 81 |
^User-Agent: curl/.* |
| 82 |
</strip> |
| 83 |
<protocol> |
| 84 |
GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1 |
| 85 |
Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 86 |
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 |
| 87 |
Host: data.from.server.requiring.digest.hohoho.com |
| 88 |
Pragma: no-cache |
| 89 |
Accept: */* |
| 90 |
Proxy-Connection: Keep-Alive |
| 91 |
|
| 92 |
GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1 |
| 93 |
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEMAAAAYABgAWwAAAAAAAABAAAAAAwADAEAAAAAAAAAAQwAAAAAAAABzAAAAAYIAAGZvb4P6B+XVQ6vQsx3DfDXUVhd9436GAxPu0IYcl2Z7LxHmNeOAWQ+vxUmhuCFJBUgXCQ== |
| 94 |
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 |
| 95 |
Host: data.from.server.requiring.digest.hohoho.com |
| 96 |
Pragma: no-cache |
| 97 |
Accept: */* |
| 98 |
Proxy-Connection: Keep-Alive |
| 99 |
|
| 100 |
GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1 |
| 101 |
Authorization: Digest username="digest", realm="r e a l m", nonce="abcdef", uri="/169", response="95d48591985a03c4b49cb962aa7bd3e6" |
| 102 |
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 |
| 103 |
Host: data.from.server.requiring.digest.hohoho.com |
| 104 |
Pragma: no-cache |
| 105 |
Accept: */* |
| 106 |
Proxy-Connection: Keep-Alive |
| 107 |
|
| 108 |
</protocol> |
| 109 |
</verify> |