Hi Oleg I did read the tutorial and i tried the sample code and it retires the request when the sever responds with a 401 and negotiate request but the new request does not have the appropriate header. I need to determine how to generate appropriate credentials and/or token that http client can use to send the appropriate header. Still trying to investigate how to go about doing that.
-- Arpit [email protected] On Oct 28, 2011, at 12:08 PM, Oleg Kalnichevski wrote: > On Fri, 2011-10-28 at 10:15 -0700, Arpit Gupta wrote: >> Hi All, >> >> I am trying to get httpclient and kerberos authentication to work. >> >> I have been looking at the file >> >> src/examples/org/apache/http/examples/client/ClientKerberosAuthentication.java >> >> and have a few questions. >> >> 1. I cant quite figure out in the above example how the kerberos credentials >> are being provided >> 2. If i were to assume that user has already done a kinit on the system is >> there a way to read the system cache to generate the appropriate headers for >> the http call. >> >> This is my first time working with kerberos so if i am missing something >> obvious please let me know :) >> > > Have you looked at the HttpClient tutorial? > > http://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html#spnego > > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
