Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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>
share|improve this question
1  
can you add code for the request your making please as thats where things are getting wrong –  yuri kilochek 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: telerik.com/fiddler/web-traffic-recording –  Alexey Krasheninnikov Oct 21 at 19:26

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

share|improve this answer

Your Answer

 
discard

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.