I am trying to connect from a java client to sharepoint. I manageds to connect to sp2010 ntlm sp2010 kerberos sp2007 ntlm but sp2007 kerberos throws the error below(maybe from the iis):

what could be the problem? how can I check whats wrong ? (the connection is https)

I saw this link and changed MaxFieldLength and the MaxRequestBytes registry settings but it didnt help.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>

1 Answer 1


I created a tool - httpclientAuthHelper for easly accessing NTLM and kerberos from JAVA, no configuratino required.

it worked great for this. https://github.com/DovAmir/httpclientAuthHelper

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.