1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP Negotiate auth (stub ntlm) 7</keywords> 8</info> 9# Server-side 10<reply> 11<!-- First request, expect 401 (ntlm challenge) --> 12<data1> 13HTTP/1.1 401 Authorization Required 14Server: Microsoft-IIS/7.0 15Content-Type: text/html; charset=iso-8859-1 16WWW-Authenticate: Negotiate Qw== 17Content-Length: 19 18 19Still not yet sir! 20</data1> 21<!-- Second request, expect success --> 22<data2> 23HTTP/1.1 200 Things are fine in server land 24Server: Microsoft-IIS/7.0 25Content-Type: text/html; charset=iso-8859-1 26WWW-Authenticate: Negotiate RA== 27Content-Length: 15 28 29Nice auth sir! 30</data2> 31<datacheck> 32HTTP/1.1 401 Authorization Required 33Server: Microsoft-IIS/7.0 34Content-Type: text/html; charset=iso-8859-1 35WWW-Authenticate: Negotiate Qw== 36Content-Length: 19 37 38HTTP/1.1 200 Things are fine in server land 39Server: Microsoft-IIS/7.0 40Content-Type: text/html; charset=iso-8859-1 41WWW-Authenticate: Negotiate RA== 42Content-Length: 15 43 44Nice auth sir! 45</datacheck> 46</reply> 47 48# Client-side 49<client> 50<server> 51http 52</server> 53<name> 54HTTP Negotiate authentication (stub ntlm) 55</name> 56<features> 57GSS-API 58ld_preload 59!debug 60</features> 61<setenv> 62LD_PRELOAD=%PWD/libtest/.libs/libstubgss.so 63CURL_STUB_GSS_CREDS="NTLM_Alice" 64</setenv> 65<command> 66-u: --negotiate http://%HOSTIP:%HTTPPORT/2057 67</command> 68</client> 69 70# Verify data after the test has been "shot" 71<verify> 72<strip> 73^User-Agent:.* 74</strip> 75<protocol> 76GET /2057 HTTP/1.1 77Host: %HOSTIP:%HTTPPORT 78Authorization: Negotiate Ik5UTE1fQWxpY2UiOkhUVFBAMTI3LjAuMC4xOjI6QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQQ== 79Accept: */* 80 81GET /2057 HTTP/1.1 82Host: %HOSTIP:%HTTPPORT 83Authorization: Negotiate Ik5UTE1fQWxpY2UiOkhUVFBAMTI3LjAuMC4xOjM6QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQQ== 84Accept: */* 85 86</protocol> 87</verify> 88</testcase> 89