hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Making HTTPClient work with SPNEGO authentication
Date Fri, 22 Feb 2013 17:07:45 GMT
On Fri, 2013-02-22 at 08:53 -0800, preethig wrote:
> Thanks Oleg for the information, but looks like the HttpClient is not falling
> back to basic authentication
> 
> Please find the live header logs where basic authentication challenge is
> very much thrown when negotiate fails  liveheader.log
> <http://httpcomponents.10934.n7.nabble.com/file/n19469/liveheader.log>  
> 
> whereas the wire logs of HttpClient  does not take the basic credentials and
> just closes the connection when authentication fails with negotiate
> challenge, see logs
>   httpclient.log
> <http://httpcomponents.10934.n7.nabble.com/file/n19469/httpclient.log>  
> 
> any inputs to understand this will be helpful.
> 

It is not supposed to given the server would only accept spnego and
nothing else

:[DEBUG] headers - << HTTP/1.1 401 Unauthorized
:[DEBUG] headers - << X-Powered-By: Servlet/3.0
:[DEBUG] headers - << WWW-Authenticate: Negotiate
:[DEBUG] headers - << Content-Type: text/html; charset=UTF-8
:[DEBUG] headers - << Content-Language: en-US
:[DEBUG] headers - << Content-Length: 149
:[DEBUG] headers - << Date: Sat, 23 Feb 2013 16:39:42 GMT
:[DEBUG] headers - << Server: WebSphere Application Server/8.0

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message