hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milind Kadam <kadam.mil...@gmail.com>
Subject Re: JAVA Client on Windows 7 talking to ISS 6 with no HTTPs but Integrated Windows Authentication turned ON
Date Mon, 14 Nov 2011 16:20:28 GMT
Hi Oleg,

Thanks a lot for help.

Following is the log requested.

executing request GET
http://wkqasv0304/cw_common/servlet/PingCaSServlet?request=init HTTP/1.1
2011/11/14 11:16:52:879 EST [DEBUG] PoolingClientConnectionManager -
Connection request: [route: {}->http://wkqasv0304][total kept alive: 0;
route allocated: 0 of 2; total allocated: 0 of 20]
2011/11/14 11:16:52:879 EST [DEBUG] PoolingClientConnectionManager -
Connection leased: [id: 0][route: {}->http://wkqasv0304][total kept alive:
0; route allocated: 1 of 2; total allocated: 1 of 20]
2011/11/14 11:16:52:895 EST [DEBUG] DefaultClientConnectionOperator -
Connecting to wkqasv0304:80
2011/11/14 11:16:52:910 EST [DEBUG] RequestAddCookies - CookieSpec
selected: best-match
2011/11/14 11:16:52:910 EST [DEBUG] RequestAuthCache - Auth cache not set
in the context
2011/11/14 11:16:52:910 EST [DEBUG] RequestTargetAuthentication - Target
auth state: UNCHALLENGED
2011/11/14 11:16:52:910 EST [DEBUG] RequestProxyAuthentication - Proxy auth
state: UNCHALLENGED
2011/11/14 11:16:52:910 EST [DEBUG] DefaultHttpClient - Attempt 1 to
execute request
2011/11/14 11:16:52:910 EST [DEBUG] DefaultClientConnection - Sending
request: GET /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1
2011/11/14 11:16:52:910 EST [DEBUG] headers - >> GET
/cw_common/servlet/PingCaSServlet?request=init HTTP/1.1
2011/11/14 11:16:52:910 EST [DEBUG] headers - >> Host: wkqasv0304
2011/11/14 11:16:52:910 EST [DEBUG] headers - >> Connection: Keep-Alive
2011/11/14 11:16:52:910 EST [DEBUG] headers - >> User-Agent:
Apache-HttpClient/4.2-alpha1 (java 1.5)
2011/11/14 11:16:52:941 EST [DEBUG] DefaultClientConnection - Receiving
response: HTTP/1.1 401 Unauthorized
2011/11/14 11:16:52:941 EST [DEBUG] headers - << HTTP/1.1 401 Unauthorized
2011/11/14 11:16:52:941 EST [DEBUG] headers - << Content-Length: 1656
2011/11/14 11:16:52:941 EST [DEBUG] headers - << Content-Type: text/html
2011/11/14 11:16:52:941 EST [DEBUG] headers - << Server: Microsoft-IIS/6.0
2011/11/14 11:16:52:941 EST [DEBUG] headers - << WWW-Authenticate: Negotiate
2011/11/14 11:16:52:941 EST [DEBUG] headers - << WWW-Authenticate: NTLM
2011/11/14 11:16:52:941 EST [DEBUG] headers - << Date: Mon, 14 Nov 2011
16:16:52 GMT
2011/11/14 11:16:52:941 EST [DEBUG] DefaultHttpClient - Connection can be
kept alive indefinitely
2011/11/14 11:16:52:941 EST [DEBUG] DefaultHttpClient - wkqasv0304:80
requested authentication
2011/11/14 11:16:52:941 EST [DEBUG] TargetAuthenticationStrategy -
Authentication schemes in the order of preference: [negotiate, NTLM,
Digest, Basic]
2011/11/14 11:16:52:941 EST [DEBUG] NegotiateScheme - Received challenge ''
from the auth server
2011/11/14 11:16:52:941 EST [DEBUG] TargetAuthenticationStrategy -
Challenge for Digest authentication scheme not available
2011/11/14 11:16:52:941 EST [DEBUG] TargetAuthenticationStrategy -
Challenge for Basic authentication scheme not available
----------------------------------------
HTTP/1.1 401 Unauthorized
2011/11/14 11:16:52:941 EST [DEBUG] PoolingClientConnectionManager -
Connection [id: 0][route: {}->http://wkqasv0304] can be kept alive
indefinitely
2011/11/14 11:16:52:941 EST [DEBUG] PoolingClientConnectionManager -
Connection released: [id: 0][route: {}->http://wkqasv0304][total kept
alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]
----------------------------------------
2011/11/14 11:16:52:941 EST [DEBUG] PoolingClientConnectionManager -
Connection manager is shutting down
2011/11/14 11:16:52:941 EST [DEBUG] DefaultClientConnection - Connection
0.0.0.0:59517<->10.102.11.40:80 closed
2011/11/14 11:16:52:941 EST [DEBUG] DefaultClientConnection - Connection
0.0.0.0:59517<->10.102.11.40:80 closed
2011/11/14 11:16:52:941 EST [DEBUG] PoolingClientConnectionManager -
Connection manager shut down
Exception in thread "main" java.lang.NullPointerException
 at
clientauthentication.ClientAuthentication.main(ClientAuthentication.java:105)



On Mon, Nov 14, 2011 at 10:03 AM, Oleg Kalnichevski <olegk@apache.org>wrote:

> On Mon, Nov 14, 2011 at 09:29:10AM -0500, Milind Kadam wrote:
> > Hi There,
> >
> > I am new to HTTPClient and trying to use it to implement JAVA Client
> which
> > can talk to Web Server. I wan using URLConnect and everything was working
> > fine against IIS 6 web server until disabled the anonymous access. So
> > trying to use the HTTPClient. Example
> ClientInteractiveAuthentication.java
> > works fine if I choose Basic authentication but when I set Integrated
> > Windows authentication; authState.getAuthScheme returns null.
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Milind
>
> Milind,
>
> If you run your applications with the wire / context logging on as
> described here [1] you should get additional details about request
> execution process and might be able to see why HttpClient was unable to
> authenticate when Integrated Windows authentication is activated on the
> server side.
>
> Oleg
>
> [1] http://hc.apache.org/httpcomponents-client-ga/logging.html
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message