| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
HTTP NTLM auth |
| 6 |
followlocation |
| 7 |
</keywords> |
| 8 |
</info> |
| 9 |
# Server-side |
| 10 |
<reply> |
| 11 |
|
| 12 |
# no <data> in this test since we have NTLM from the start |
| 13 |
|
| 14 |
# This is supposed to be returned when the server gets a first |
| 15 |
# Authorization: NTLM line passed-in from the client |
| 16 |
<data1001> |
| 17 |
HTTP/1.1 401 Now gimme that second request of crap |
| 18 |
Server: Microsoft-IIS/5.0 |
| 19 |
Content-Type: text/html; charset=iso-8859-1 |
| 20 |
Content-Length: 34 |
| 21 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 22 |
|
| 23 |
This is not the real page either! |
| 24 |
</data1001> |
| 25 |
|
| 26 |
# This is supposed to be returned when the server gets the second |
| 27 |
# Authorization: NTLM line passed-in from the client |
| 28 |
<data1002> |
| 29 |
HTTP/1.1 301 Things are fine in server land swsclose |
| 30 |
Server: Microsoft-IIS/5.0 |
| 31 |
Connection: close |
| 32 |
Location: /you/890010 |
| 33 |
|
| 34 |
</data1002> |
| 35 |
|
| 36 |
# This is the first reply after the redirection |
| 37 |
<data1011> |
| 38 |
HTTP/1.1 401 Now gimme that second round of crap |
| 39 |
Server: Microsoft-IIS/5.0 |
| 40 |
Content-Type: text/html; charset=iso-8859-1 |
| 41 |
Content-Length: 34 |
| 42 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 43 |
|
| 44 |
This is not the real page either! |
| 45 |
</data1011> |
| 46 |
|
| 47 |
# This is supposed to be returned when the server gets the second |
| 48 |
# Authorization: NTLM line passed-in from the client |
| 49 |
<data1012> |
| 50 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 51 |
Server: Microsoft-IIS/5.0 |
| 52 |
Content-Type: text/html; charset=iso-8859-1 |
| 53 |
|
| 54 |
Finally, this is the real page! |
| 55 |
</data1012> |
| 56 |
|
| 57 |
<datacheck> |
| 58 |
HTTP/1.1 401 Now gimme that second request of crap |
| 59 |
Server: Microsoft-IIS/5.0 |
| 60 |
Content-Type: text/html; charset=iso-8859-1 |
| 61 |
Content-Length: 34 |
| 62 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 63 |
|
| 64 |
HTTP/1.1 301 Things are fine in server land swsclose |
| 65 |
Server: Microsoft-IIS/5.0 |
| 66 |
Connection: close |
| 67 |
Location: /you/890010 |
| 68 |
|
| 69 |
HTTP/1.1 401 Now gimme that second round of crap |
| 70 |
Server: Microsoft-IIS/5.0 |
| 71 |
Content-Type: text/html; charset=iso-8859-1 |
| 72 |
Content-Length: 34 |
| 73 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 74 |
|
| 75 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 76 |
Server: Microsoft-IIS/5.0 |
| 77 |
Content-Type: text/html; charset=iso-8859-1 |
| 78 |
|
| 79 |
Finally, this is the real page! |
| 80 |
</datacheck> |
| 81 |
|
| 82 |
</reply> |
| 83 |
|
| 84 |
# Client-side |
| 85 |
<client> |
| 86 |
<features> |
| 87 |
NTLM |
| 88 |
</features> |
| 89 |
<server> |
| 90 |
http |
| 91 |
</server> |
| 92 |
<name> |
| 93 |
HTTP with NTLM and follow-location |
| 94 |
</name> |
| 95 |
<command> |
| 96 |
http://%HOSTIP:%HTTPPORT/89 -u testuser:testpass --ntlm -L |
| 97 |
</command> |
| 98 |
</client> |
| 99 |
|
| 100 |
# Verify data after the test has been "shot" |
| 101 |
<verify> |
| 102 |
<strip> |
| 103 |
^User-Agent:.* |
| 104 |
</strip> |
| 105 |
<protocol> |
| 106 |
GET /89 HTTP/1.1 |
| 107 |
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 108 |
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 |
| 109 |
Host: 127.0.0.1:%HTTPPORT |
| 110 |
Accept: */* |
| 111 |
|
| 112 |
GET /89 HTTP/1.1 |
| 113 |
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145 |
| 114 |
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 |
| 115 |
Host: 127.0.0.1:%HTTPPORT |
| 116 |
Accept: */* |
| 117 |
|
| 118 |
GET /you/890010 HTTP/1.1 |
| 119 |
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 120 |
User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS |
| 121 |
Host: 127.0.0.1:%HTTPPORT |
| 122 |
Accept: */* |
| 123 |
|
| 124 |
GET /you/890010 HTTP/1.1 |
| 125 |
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145 |
| 126 |
User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS |
| 127 |
Host: 127.0.0.1:%HTTPPORT |
| 128 |
Accept: */* |
| 129 |
|
| 130 |
</protocol> |
| 131 |
</verify> |