| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
HTTP NTLM auth |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
# Server-side |
| 9 |
<reply> |
| 10 |
<data> |
| 11 |
HTTP/1.1 401 Authorization Required swsclose |
| 12 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 13 |
WWW-Authenticate: Basic |
| 14 |
WWW-Authenticate: Wild-and-crazy |
| 15 |
WWW-Authenticate: NTLM |
| 16 |
Content-Type: text/html; charset=iso-8859-1 |
| 17 |
|
| 18 |
This is not the real page |
| 19 |
</data> |
| 20 |
|
| 21 |
# This is supposed to be returned when the server gets a first |
| 22 |
# Authorization: NTLM line passed-in from the client |
| 23 |
<data1001> |
| 24 |
HTTP/1.1 401 Now gimme that second request of crap |
| 25 |
Server: Microsoft-IIS/5.0 |
| 26 |
Content-Length: 34 |
| 27 |
Content-Type: text/html; charset=iso-8859-1 |
| 28 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 29 |
|
| 30 |
This is not the real page either! |
| 31 |
</data1001> |
| 32 |
|
| 33 |
# This is supposed to be returned when the server gets the second |
| 34 |
# Authorization: NTLM line passed-in from the client |
| 35 |
<data1002> |
| 36 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 37 |
Server: Microsoft-IIS/5.0 |
| 38 |
Content-Type: text/html; charset=iso-8859-1 |
| 39 |
|
| 40 |
Finally, this is the real page! |
| 41 |
</data1002> |
| 42 |
|
| 43 |
<datacheck> |
| 44 |
HTTP/1.1 401 Authorization Required swsclose |
| 45 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 46 |
WWW-Authenticate: Basic |
| 47 |
WWW-Authenticate: Wild-and-crazy |
| 48 |
WWW-Authenticate: NTLM |
| 49 |
Content-Type: text/html; charset=iso-8859-1 |
| 50 |
|
| 51 |
HTTP/1.1 401 Now gimme that second request of crap |
| 52 |
Server: Microsoft-IIS/5.0 |
| 53 |
Content-Length: 34 |
| 54 |
Content-Type: text/html; charset=iso-8859-1 |
| 55 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 56 |
|
| 57 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 58 |
Server: Microsoft-IIS/5.0 |
| 59 |
Content-Type: text/html; charset=iso-8859-1 |
| 60 |
|
| 61 |
Finally, this is the real page! |
| 62 |
</datacheck> |
| 63 |
|
| 64 |
</reply> |
| 65 |
|
| 66 |
# Client-side |
| 67 |
<client> |
| 68 |
<features> |
| 69 |
NTLM |
| 70 |
</features> |
| 71 |
<server> |
| 72 |
http |
| 73 |
</server> |
| 74 |
<name> |
| 75 |
HTTP with NTLM, Basic or Wild-and-crazy authorization |
| 76 |
</name> |
| 77 |
<command> |
| 78 |
http://%HOSTIP:%HTTPPORT/69 -u testuser:testpass --anyauth |
| 79 |
</command> |
| 80 |
</client> |
| 81 |
|
| 82 |
# Verify data after the test has been "shot" |
| 83 |
<verify> |
| 84 |
<strip> |
| 85 |
^User-Agent:.* |
| 86 |
</strip> |
| 87 |
<protocol> |
| 88 |
GET /69 HTTP/1.1 |
| 89 |
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 |
| 90 |
Host: 127.0.0.1:%HTTPPORT |
| 91 |
Accept: */* |
| 92 |
|
| 93 |
GET /69 HTTP/1.1 |
| 94 |
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 95 |
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 |
| 96 |
Host: 127.0.0.1:%HTTPPORT |
| 97 |
Accept: */* |
| 98 |
|
| 99 |
GET /69 HTTP/1.1 |
| 100 |
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145 |
| 101 |
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 |
| 102 |
Host: 127.0.0.1:%HTTPPORT |
| 103 |
Accept: */* |
| 104 |
|
| 105 |
</protocol> |
| 106 |
</verify> |