SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

<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>
share|improve this question
can you add code for the request your making please as thats where things are getting wrong – Learner Aug 30 '12 at 16:21
What kind of request is it. Please show a dump from Fiddler or similar. – Wictor Wilen MCA MCM MVP Aug 30 '12 at 18:37
the SharePoint is https, so i cant inspect with fiddler. – dov.amir Aug 30 '12 at 20:19
Fiddler can decrypt HTTPS traffic. See here: – Alexey Krasheninnikov Oct 21 '14 at 19:26

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

it worked great for this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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