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