| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
|
| 4 |
# no <data> in this test since we have NTLM from the start |
| 5 |
|
| 6 |
# This is supposed to be returned when the server gets a first |
| 7 |
# Authorization: NTLM line passed-in from the client |
| 8 |
<data1001> |
| 9 |
HTTP/1.1 401 Now gimme that second request of crap |
| 10 |
Server: Microsoft-IIS/5.0 |
| 11 |
Content-Type: text/html; charset=iso-8859-1 |
| 12 |
Content-Length: 34 |
| 13 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 14 |
|
| 15 |
This is not the real page either! |
| 16 |
</data1001> |
| 17 |
|
| 18 |
# This is supposed to be returned when the server gets the second |
| 19 |
# Authorization: NTLM line passed-in from the client |
| 20 |
<data1002> |
| 21 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 22 |
Server: Microsoft-IIS/5.0 |
| 23 |
Content-Type: text/html; charset=iso-8859-1 |
| 24 |
|
| 25 |
Finally, this is the real page! |
| 26 |
</data1002> |
| 27 |
|
| 28 |
<datacheck> |
| 29 |
HTTP/1.1 401 Now gimme that second request of crap |
| 30 |
Server: Microsoft-IIS/5.0 |
| 31 |
Content-Type: text/html; charset=iso-8859-1 |
| 32 |
Content-Length: 34 |
| 33 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 34 |
|
| 35 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 36 |
Server: Microsoft-IIS/5.0 |
| 37 |
Content-Type: text/html; charset=iso-8859-1 |
| 38 |
|
| 39 |
Finally, this is the real page! |
| 40 |
</datacheck> |
| 41 |
|
| 42 |
</reply> |
| 43 |
|
| 44 |
# Client-side |
| 45 |
<client> |
| 46 |
<features> |
| 47 |
NTLM |
| 48 |
</features> |
| 49 |
<server> |
| 50 |
http |
| 51 |
</server> |
| 52 |
<name> |
| 53 |
HTTP with NTLM authorization when talking HTTP/1.0 |
| 54 |
</name> |
| 55 |
<command> |
| 56 |
http://%HOSTIP:%HTTPPORT/159 -u testuser:testpass --ntlm -0 |
| 57 |
</command> |
| 58 |
</client> |
| 59 |
|
| 60 |
# Verify data after the test has been "shot" |
| 61 |
<verify> |
| 62 |
<strip> |
| 63 |
^User-Agent:.* |
| 64 |
</strip> |
| 65 |
<protocol> |
| 66 |
GET /159 HTTP/1.0 |
| 67 |
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 68 |
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 |
| 69 |
Host: 127.0.0.1:%HTTPPORT |
| 70 |
Accept: */* |
| 71 |
|
| 72 |
GET /159 HTTP/1.0 |
| 73 |
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145 |
| 74 |
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 |
| 75 |
Host: 127.0.0.1:%HTTPPORT |
| 76 |
Accept: */* |
| 77 |
|
| 78 |
</protocol> |
| 79 |
</verify> |