| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
HTTP NTLM auth |
| 6 |
--anyauth |
| 7 |
followlocation |
| 8 |
</keywords> |
| 9 |
</info> |
| 10 |
# Server-side |
| 11 |
<reply> |
| 12 |
|
| 13 |
<data> |
| 14 |
HTTP/1.1 401 Authorization Required swsclose |
| 15 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 16 |
WWW-Authenticate: Basic |
| 17 |
WWW-Authenticate: Wild-and-crazy |
| 18 |
WWW-Authenticate: NTLM |
| 19 |
Content-Type: text/html; charset=iso-8859-1 |
| 20 |
|
| 21 |
This is not the real page |
| 22 |
</data> |
| 23 |
|
| 24 |
# This is supposed to be returned when the server gets a first |
| 25 |
# Authorization: NTLM line passed-in from the client |
| 26 |
<data1001> |
| 27 |
HTTP/1.1 401 Now gimme that second request of crap |
| 28 |
Server: Microsoft-IIS/5.0 |
| 29 |
Content-Type: text/html; charset=iso-8859-1 |
| 30 |
Content-Length: 34 |
| 31 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 32 |
|
| 33 |
This is not the real page either! |
| 34 |
</data1001> |
| 35 |
|
| 36 |
# This is supposed to be returned when the server gets the second |
| 37 |
# Authorization: NTLM line passed-in from the client |
| 38 |
<data1002> |
| 39 |
HTTP/1.1 301 Things are fine in server land swsclose |
| 40 |
Server: Microsoft-IIS/5.0 |
| 41 |
Connection: close |
| 42 |
Location: /you/900010 |
| 43 |
|
| 44 |
</data1002> |
| 45 |
|
| 46 |
# This is the first reply after the redirection |
| 47 |
<data10> |
| 48 |
HTTP/1.1 401 Authorization Required swsclose |
| 49 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 50 |
WWW-Authenticate: Basic |
| 51 |
WWW-Authenticate: Wild-and-crazy |
| 52 |
WWW-Authenticate: NTLM |
| 53 |
Content-Type: text/html; charset=iso-8859-1 |
| 54 |
|
| 55 |
This is not the real page |
| 56 |
</data10> |
| 57 |
|
| 58 |
<data1011> |
| 59 |
HTTP/1.1 401 Now gimme that second round of crap |
| 60 |
Server: Microsoft-IIS/5.0 |
| 61 |
Content-Type: text/html; charset=iso-8859-1 |
| 62 |
Content-Length: 34 |
| 63 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 64 |
|
| 65 |
This is not the real page either! |
| 66 |
</data1011> |
| 67 |
|
| 68 |
# This is supposed to be returned when the server gets the second |
| 69 |
# Authorization: NTLM line passed-in from the client |
| 70 |
<data1012> |
| 71 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 72 |
Server: Microsoft-IIS/5.0 |
| 73 |
Content-Type: text/html; charset=iso-8859-1 |
| 74 |
|
| 75 |
Finally, this is the real page! |
| 76 |
</data1012> |
| 77 |
|
| 78 |
<datacheck> |
| 79 |
HTTP/1.1 401 Authorization Required swsclose |
| 80 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 81 |
WWW-Authenticate: Basic |
| 82 |
WWW-Authenticate: Wild-and-crazy |
| 83 |
WWW-Authenticate: NTLM |
| 84 |
Content-Type: text/html; charset=iso-8859-1 |
| 85 |
|
| 86 |
HTTP/1.1 401 Now gimme that second request of crap |
| 87 |
Server: Microsoft-IIS/5.0 |
| 88 |
Content-Type: text/html; charset=iso-8859-1 |
| 89 |
Content-Length: 34 |
| 90 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 91 |
|
| 92 |
HTTP/1.1 301 Things are fine in server land swsclose |
| 93 |
Server: Microsoft-IIS/5.0 |
| 94 |
Connection: close |
| 95 |
Location: /you/900010 |
| 96 |
|
| 97 |
HTTP/1.1 401 Authorization Required swsclose |
| 98 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 99 |
WWW-Authenticate: Basic |
| 100 |
WWW-Authenticate: Wild-and-crazy |
| 101 |
WWW-Authenticate: NTLM |
| 102 |
Content-Type: text/html; charset=iso-8859-1 |
| 103 |
|
| 104 |
HTTP/1.1 401 Now gimme that second round of crap |
| 105 |
Server: Microsoft-IIS/5.0 |
| 106 |
Content-Type: text/html; charset=iso-8859-1 |
| 107 |
Content-Length: 34 |
| 108 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 109 |
|
| 110 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 111 |
Server: Microsoft-IIS/5.0 |
| 112 |
Content-Type: text/html; charset=iso-8859-1 |
| 113 |
|
| 114 |
Finally, this is the real page! |
| 115 |
</datacheck> |
| 116 |
|
| 117 |
</reply> |
| 118 |
|
| 119 |
# Client-side |
| 120 |
<client> |
| 121 |
<features> |
| 122 |
NTLM |
| 123 |
</features> |
| 124 |
<server> |
| 125 |
http |
| 126 |
</server> |
| 127 |
<name> |
| 128 |
HTTP with NTLM via --anyauth, and then follow-location with NTLM again |
| 129 |
</name> |
| 130 |
<command> |
| 131 |
http://%HOSTIP:%HTTPPORT/90 -u testuser:testpass --anyauth -L |
| 132 |
</command> |
| 133 |
</client> |
| 134 |
|
| 135 |
# Verify data after the test has been "shot" |
| 136 |
<verify> |
| 137 |
<strip> |
| 138 |
^User-Agent:.* |
| 139 |
</strip> |
| 140 |
<protocol> |
| 141 |
GET /90 HTTP/1.1 |
| 142 |
Host: 127.0.0.1:%HTTPPORT |
| 143 |
Accept: */* |
| 144 |
|
| 145 |
GET /90 HTTP/1.1 |
| 146 |
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 147 |
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 |
| 148 |
Host: 127.0.0.1:%HTTPPORT |
| 149 |
Accept: */* |
| 150 |
|
| 151 |
GET /90 HTTP/1.1 |
| 152 |
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145 |
| 153 |
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 |
| 154 |
Host: 127.0.0.1:%HTTPPORT |
| 155 |
Accept: */* |
| 156 |
|
| 157 |
GET /you/900010 HTTP/1.1 |
| 158 |
Host: 127.0.0.1:%HTTPPORT |
| 159 |
Accept: */* |
| 160 |
|
| 161 |
GET /you/900010 HTTP/1.1 |
| 162 |
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 163 |
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 |
| 164 |
Host: 127.0.0.1:%HTTPPORT |
| 165 |
Accept: */* |
| 166 |
|
| 167 |
GET /you/900010 HTTP/1.1 |
| 168 |
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145 |
| 169 |
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 |
| 170 |
Host: 127.0.0.1:%HTTPPORT |
| 171 |
Accept: */* |
| 172 |
|
| 173 |
</protocol> |
| 174 |
</verify> |