| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
|
| 4 |
<data> |
| 5 |
HTTP/1.1 407 Authorization Required swsclose |
| 6 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 7 |
Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" |
| 8 |
Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts" |
| 9 |
Proxy-Authenticate: NTLM |
| 10 |
Content-Type: text/html; charset=iso-8859-1 |
| 11 |
Connection: close |
| 12 |
|
| 13 |
This is not the real page |
| 14 |
</data> |
| 15 |
|
| 16 |
# this is returned first since we get no proxy-auth |
| 17 |
<data1001> |
| 18 |
HTTP/1.1 407 Authorization Required to proxy me my dear |
| 19 |
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 20 |
Content-Length: 33 |
| 21 |
|
| 22 |
Hey you, authenticate or go away! |
| 23 |
</data1001> |
| 24 |
|
| 25 |
# This is supposed to be returned when the server gets the second |
| 26 |
# Authorization: NTLM line passed-in from the client |
| 27 |
<data1002> |
| 28 |
HTTP/1.1 200 Things are fine in proxy land swsclose |
| 29 |
Server: Microsoft-IIS/5.0 |
| 30 |
Content-Type: text/html; charset=iso-8859-1 |
| 31 |
Content-Length; 42 |
| 32 |
|
| 33 |
Contents of that page you requested, sir. |
| 34 |
</data1002> |
| 35 |
|
| 36 |
<datacheck> |
| 37 |
HTTP/1.1 407 Authorization Required swsclose |
| 38 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 39 |
Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" |
| 40 |
Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts" |
| 41 |
Proxy-Authenticate: NTLM |
| 42 |
Content-Type: text/html; charset=iso-8859-1 |
| 43 |
Connection: close |
| 44 |
|
| 45 |
HTTP/1.1 407 Authorization Required to proxy me my dear |
| 46 |
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 47 |
Content-Length: 33 |
| 48 |
|
| 49 |
HTTP/1.1 200 Things are fine in proxy land swsclose |
| 50 |
Server: Microsoft-IIS/5.0 |
| 51 |
Content-Type: text/html; charset=iso-8859-1 |
| 52 |
Content-Length; 42 |
| 53 |
|
| 54 |
Contents of that page you requested, sir. |
| 55 |
</datacheck> |
| 56 |
</reply> |
| 57 |
|
| 58 |
# Client-side |
| 59 |
<client> |
| 60 |
<server> |
| 61 |
http |
| 62 |
</server> |
| 63 |
<features> |
| 64 |
NTLM |
| 65 |
</features> |
| 66 |
<name> |
| 67 |
HTTP POST with --proxy-anyauth, picking NTLM |
| 68 |
</name> |
| 69 |
<command> |
| 70 |
http://%HOSTIP:%HTTPPORT/243 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-anyauth -d "postit" |
| 71 |
</command> |
| 72 |
</client> |
| 73 |
|
| 74 |
# Verify data after the test has been "shot" |
| 75 |
<verify> |
| 76 |
<strip> |
| 77 |
^User-Agent: curl/.* |
| 78 |
</strip> |
| 79 |
<protocol nonewline=yes> |
| 80 |
POST http://127.0.0.1:8990/243 HTTP/1.1 |
| 81 |
User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13 |
| 82 |
Host: 127.0.0.1:8990 |
| 83 |
Pragma: no-cache |
| 84 |
Accept: */* |
| 85 |
Proxy-Connection: Keep-Alive |
| 86 |
Content-Length: 6 |
| 87 |
Content-Type: application/x-www-form-urlencoded |
| 88 |
|
| 89 |
postitPOST http://%HOSTIP:%HTTPPORT/243 HTTP/1.1 |
| 90 |
Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 91 |
User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13 |
| 92 |
Host: %HOSTIP:%HTTPPORT |
| 93 |
Pragma: no-cache |
| 94 |
Accept: */* |
| 95 |
Proxy-Connection: Keep-Alive |
| 96 |
Content-Length: 0 |
| 97 |
Content-Type: application/x-www-form-urlencoded |
| 98 |
|
| 99 |
POST http://127.0.0.1:8990/243 HTTP/1.1 |
| 100 |
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEUAAAAYABgAXQAAAAAAAABAAAAABQAFAEAAAAAAAAAARQAAAAAAAAB1AAAAAYIAAHNpbGx5oB5CPMq0JDu5tbxLow3sHn3jfoYDE+7QJVE7DA0GyDEwvj2BxsBctP9tT4fnCtL1 |
| 101 |
User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13 |
| 102 |
Host: 127.0.0.1:8990 |
| 103 |
Pragma: no-cache |
| 104 |
Accept: */* |
| 105 |
Proxy-Connection: Keep-Alive |
| 106 |
Content-Length: 6 |
| 107 |
Content-Type: application/x-www-form-urlencoded |
| 108 |
|
| 109 |
postit |
| 110 |
</protocol> |
| 111 |
</verify> |