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