| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<servercmd> |
| 4 |
auth_required |
| 5 |
</servercmd> |
| 6 |
<data> |
| 7 |
HTTP/1.1 401 NTLM Authorization Required swsclose |
| 8 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 9 |
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" |
| 10 |
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts" |
| 11 |
WWW-Authenticate: NTLM |
| 12 |
Content-Type: text/html; charset=iso-8859-1 |
| 13 |
Connection: close |
| 14 |
|
| 15 |
moo |
| 16 |
</data> |
| 17 |
|
| 18 |
# This is supposed to be returned when the server gets a first |
| 19 |
# Authorization: NTLM line passed-in from the client |
| 20 |
<data1001> |
| 21 |
HTTP/1.1 401 Type-1 received, send back type-2 |
| 22 |
Server: Microsoft-IIS/5.0 |
| 23 |
Content-Length: 34 |
| 24 |
Content-Type: text/html; charset=iso-8859-1 |
| 25 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 26 |
|
| 27 |
This is not the real page either! |
| 28 |
</data1001> |
| 29 |
|
| 30 |
# This is supposed to be returned when the server gets the second |
| 31 |
# Authorization: NTLM line passed-in from the client |
| 32 |
<data1002> |
| 33 |
HTTP/1.1 200 Type-3 Recevied and all Things are fine swsclose |
| 34 |
Server: Microsoft-IIS/5.0 |
| 35 |
Content-Type: text/html; charset=iso-8859-1 |
| 36 |
|
| 37 |
Finally, this is the real page! |
| 38 |
</data1002> |
| 39 |
|
| 40 |
<datacheck> |
| 41 |
HTTP/1.1 401 NTLM Authorization Required swsclose |
| 42 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 43 |
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" |
| 44 |
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts" |
| 45 |
WWW-Authenticate: NTLM |
| 46 |
Content-Type: text/html; charset=iso-8859-1 |
| 47 |
Connection: close |
| 48 |
|
| 49 |
HTTP/1.1 401 Type-1 received, send back type-2 |
| 50 |
Server: Microsoft-IIS/5.0 |
| 51 |
Content-Length: 34 |
| 52 |
Content-Type: text/html; charset=iso-8859-1 |
| 53 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 54 |
|
| 55 |
HTTP/1.1 200 Type-3 Recevied and all Things are fine swsclose |
| 56 |
Server: Microsoft-IIS/5.0 |
| 57 |
Content-Type: text/html; charset=iso-8859-1 |
| 58 |
|
| 59 |
Finally, this is the real page! |
| 60 |
</datacheck> |
| 61 |
|
| 62 |
</reply> |
| 63 |
|
| 64 |
# Client-side |
| 65 |
<client> |
| 66 |
<features> |
| 67 |
NTLM |
| 68 |
</features> |
| 69 |
<server> |
| 70 |
http |
| 71 |
</server> |
| 72 |
<name> |
| 73 |
HTTP PUT with --anyauth authorization (picking NTLM) |
| 74 |
</name> |
| 75 |
<command> |
| 76 |
http://%HOSTIP:%HTTPPORT/155 -T log/put155 -u testuser:testpass --anyauth |
| 77 |
</command> |
| 78 |
<file name="log/put155"> |
| 79 |
This is data we upload with PUT |
| 80 |
a second line |
| 81 |
line three |
| 82 |
four is the number of lines |
| 83 |
</file> |
| 84 |
</client> |
| 85 |
|
| 86 |
# Verify data after the test has been "shot" |
| 87 |
<verify> |
| 88 |
<strip> |
| 89 |
^User-Agent:.* |
| 90 |
</strip> |
| 91 |
<protocol> |
| 92 |
PUT /155 HTTP/1.1 |
| 93 |
Host: 127.0.0.1:%HTTPPORT |
| 94 |
Accept: */* |
| 95 |
Content-Length: 85 |
| 96 |
Expect: 100-continue |
| 97 |
|
| 98 |
PUT /155 HTTP/1.1 |
| 99 |
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 100 |
Host: 127.0.0.1:%HTTPPORT |
| 101 |
Accept: */* |
| 102 |
Content-Length: 0 |
| 103 |
Expect: 100-continue |
| 104 |
|
| 105 |
PUT /155 HTTP/1.1 |
| 106 |
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145 |
| 107 |
User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3 |
| 108 |
Host: 127.0.0.1:%HTTPPORT |
| 109 |
Accept: */* |
| 110 |
Content-Length: 85 |
| 111 |
Expect: 100-continue |
| 112 |
|
| 113 |
This is data we upload with PUT |
| 114 |
a second line |
| 115 |
line three |
| 116 |
four is the number of lines |
| 117 |
</protocol> |
| 118 |
</verify> |