Hey there,

I am trying to send http requests to the sharepoint site at our work. Using
Javascript everything automatically worked. When I first tried to use Java
I learned our Sharepoint uses NTLM authentication as I got a 401 response.
I was able to get ntlm authentication to work using both the default and
jcifs ntlmengine from the examples here. However, I do not want my users to
have to enter their sharepoint password as it is the same as their windows
credentials.

After some further research I have found that the java.net.urlconnection
implementation automatically attempts to provide the currently logged in
Windows user credentials (since 1.5_08). Is there some way to emulate the
same behaviour with HttpClient? Has anyone else come across this and been
able to find the part of Suns code that provides that functionality? I want
to use HttpClient instead of URLConnection but I just haven't been able to
figure it out yet!

Funnily enough in my search I am finding endless amounts of people with the
exact opposite problem, trying to provide specific credentials but
urlconnection is automatically using their windows credentials and people
advise them to use HttpClient instead because it doesn't do that by
default. If only that was my problem!

Thanks,
Rob

Reply via email to