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