Hello Oleg,

Thank you for your quick reply.

I am excited to hear about the feature coming to 4.4. I just started using
the mailing lists this morning and was reading that in 4.4 the minimum
required JRE version may change from 1.5 to 1.6 or even to 1.7, is this
still the case?

Also, I've never built anything with Maven before. I tried to set it up at
work but was unable to as I could not set the $JAVA_HOME environment
variable. Is maven actually required to build Httpclient or is there some
other way? I don't have a lot of experience with building from other
peoples source and I keep getting a java.lang.UnsupportedClassVersionError
whenever I try to run the code using the new Auth scheme factory. I am
sorry for the somewhat unrelated question.

Thanks again,
Rob
On 2013-12-30 6:06 AM, "Oleg Kalnichevski" <ol...@apache.org> wrote:

> On Mon, 2013-12-30 at 05:51 -0500, Rob Goodberry wrote:
> > 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
>
> Hi Rob
>
> As of version 4.4 HttpClient is likely to be able to authenticate
> transparently with NTLM when running on a Windows OS
>
> For the time being you can checkout and build the source of Windows
> specific auth schemes from here:
>
>
> http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient-win/
>
> Please note they are still considered experimental and as such are not
> supported. However, I would be very interested to know if you succeed in
> getting them work.
>
> Cheers
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
> For additional commands, e-mail: httpclient-users-h...@hc.apache.org
>
>

Reply via email to