1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP NTLM auth 7</keywords> 8</info> 9# Server-side 10<reply> 11<data> 12HTTP/1.1 401 Authorization Required swsclose 13Server: Apache/1.3.27 (Darwin) PHP/4.1.2 14WWW-Authenticate: Basic 15WWW-Authenticate: Wild-and-crazy 16WWW-Authenticate: NTLM 17Content-Type: text/html; charset=iso-8859-1 18Content-Length: 26 19 20This is not the real page 21</data> 22 23# This is supposed to be returned when the server gets a first 24# Authorization: NTLM line passed-in from the client 25<data1001> 26HTTP/1.1 401 Now gimme that second request of crap 27Server: Microsoft-IIS/5.0 28Content-Length: 34 29Content-Type: text/html; charset=iso-8859-1 30WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 31 32This is not the real page either! 33</data1001> 34 35# This is supposed to be returned when the server gets the second 36# Authorization: NTLM line passed-in from the client 37<data1002> 38HTTP/1.1 200 Things are fine in server land swsclose 39Server: Microsoft-IIS/5.0 40Content-Type: text/html; charset=iso-8859-1 41Content-Length: 32 42 43Finally, this is the real page! 44</data1002> 45 46<datacheck> 47HTTP/1.1 401 Authorization Required swsclose 48Server: Apache/1.3.27 (Darwin) PHP/4.1.2 49WWW-Authenticate: Basic 50WWW-Authenticate: Wild-and-crazy 51WWW-Authenticate: NTLM 52Content-Type: text/html; charset=iso-8859-1 53Content-Length: 26 54 55HTTP/1.1 401 Now gimme that second request of crap 56Server: Microsoft-IIS/5.0 57Content-Length: 34 58Content-Type: text/html; charset=iso-8859-1 59WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 60 61HTTP/1.1 200 Things are fine in server land swsclose 62Server: Microsoft-IIS/5.0 63Content-Type: text/html; charset=iso-8859-1 64Content-Length: 32 65 66Finally, this is the real page! 67</datacheck> 68 69</reply> 70 71# Client-side 72<client> 73<features> 74NTLM 75</features> 76<server> 77http 78</server> 79 <name> 80HTTP with NTLM, Basic or Wild-and-crazy authorization 81 </name> 82 <setenv> 83# we force our own host name, in order to make the test machine independent 84CURL_GETHOSTNAME=curlhost 85# we try to use the LD_PRELOAD hack, if not a debug build 86LD_PRELOAD=%PWD/libtest/.libs/libhostname.so 87 </setenv> 88 <command> 89http://%HOSTIP:%HTTPPORT/69 -u testuser:testpass --anyauth 90</command> 91<precheck> 92chkhostname curlhost 93</precheck> 94</client> 95 96# Verify data after the test has been "shot" 97<verify> 98<strip> 99^User-Agent:.* 100</strip> 101<protocol> 102GET /69 HTTP/1.1 103User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 104Host: %HOSTIP:%HTTPPORT 105Accept: */* 106 107GET /69 HTTP/1.1 108Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 109User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 110Host: %HOSTIP:%HTTPPORT 111Accept: */* 112 113GET /69 HTTP/1.1 114Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q= 115User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 116Host: %HOSTIP:%HTTPPORT 117Accept: */* 118 119</protocol> 120</verify> 121</testcase> 122