0

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">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<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>
</BODY></HTML>
4
  • 1
    can you add code for the request your making please as thats where things are getting wrong
    – Learner
    Commented Aug 30, 2012 at 16:21
  • What kind of request is it. Please show a dump from Fiddler or similar. Commented Aug 30, 2012 at 18:37
  • the SharePoint is https, so i cant inspect with fiddler.
    – dov.amir
    Commented Aug 30, 2012 at 20:19
  • Fiddler can decrypt HTTPS traffic. See here: telerik.com/fiddler/web-traffic-recording Commented Oct 21, 2014 at 19:26

1 Answer 1

0

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.