xref: /third_party/curl/tests/data/test2056 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_ciHTTP Negotiate auth (stub krb5)
713498266Sopenharmony_ci</keywords>
813498266Sopenharmony_ci</info>
913498266Sopenharmony_ci# Server-side
1013498266Sopenharmony_ci<reply>
1113498266Sopenharmony_ci<!-- First request, expect success in one shot -->
1213498266Sopenharmony_ci<data1>
1313498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land
1413498266Sopenharmony_ciServer: Microsoft-IIS/7.0
1513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
1613498266Sopenharmony_ciWWW-Authenticate: Negotiate RA==
1713498266Sopenharmony_ciContent-Length: 15
1813498266Sopenharmony_ci
1913498266Sopenharmony_ciNice auth sir!
2013498266Sopenharmony_ci</data1>
2113498266Sopenharmony_ci<datacheck>
2213498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land
2313498266Sopenharmony_ciServer: Microsoft-IIS/7.0
2413498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
2513498266Sopenharmony_ciWWW-Authenticate: Negotiate RA==
2613498266Sopenharmony_ciContent-Length: 15
2713498266Sopenharmony_ci
2813498266Sopenharmony_ciNice auth sir!
2913498266Sopenharmony_ci</datacheck>
3013498266Sopenharmony_ci</reply>
3113498266Sopenharmony_ci
3213498266Sopenharmony_ci# Client-side
3313498266Sopenharmony_ci<client>
3413498266Sopenharmony_ci<server>
3513498266Sopenharmony_cihttp
3613498266Sopenharmony_ci</server>
3713498266Sopenharmony_ci<name>
3813498266Sopenharmony_ciHTTP Negotiate authentication (stub krb5)
3913498266Sopenharmony_ci</name>
4013498266Sopenharmony_ci<features>
4113498266Sopenharmony_ciGSS-API
4213498266Sopenharmony_cild_preload
4313498266Sopenharmony_ci!debug
4413498266Sopenharmony_ci</features>
4513498266Sopenharmony_ci<setenv>
4613498266Sopenharmony_ciLD_PRELOAD=%PWD/libtest/.libs/libstubgss.so
4713498266Sopenharmony_ciCURL_STUB_GSS_CREDS="KRB5_Alice"
4813498266Sopenharmony_ci</setenv>
4913498266Sopenharmony_ci<command>
5013498266Sopenharmony_ci--negotiate http://%HOSTIP:%HTTPPORT/%TESTNUMBER
5113498266Sopenharmony_ci</command>
5213498266Sopenharmony_ci</client>
5313498266Sopenharmony_ci
5413498266Sopenharmony_ci# Verify data after the test has been "shot"
5513498266Sopenharmony_ci<verify>
5613498266Sopenharmony_ci<protocol>
5713498266Sopenharmony_ciGET /%TESTNUMBER HTTP/1.1
5813498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
5913498266Sopenharmony_ciAuthorization: Negotiate IktSQjVfQWxpY2UiOkhUVFBAMTI3LjAuMC4xOjE6QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQQ==
6013498266Sopenharmony_ciUser-Agent: curl/%VERSION
6113498266Sopenharmony_ciAccept: */*
6213498266Sopenharmony_ci
6313498266Sopenharmony_ci</protocol>
6413498266Sopenharmony_ci</verify>
6513498266Sopenharmony_ci</testcase>
66