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