Yeah, I have seen that but then the question is why the URL works when executed from both IE and FireFox browsers?
--Milind On Tue, Nov 15, 2011 at 9:55 AM, Oleg Kalnichevski <[email protected]> wrote: > On Tue, Nov 15, 2011 at 09:47:13AM -0500, Milind Kadam wrote: > > Thanks again. I tried NTCredentials too and still failed to connect. > > > > // Set credentials on the client > > Credentials credentials = new NTCredentials( > user, > > password, host, domain ); > > > > httpclient.getCredentialsProvider().setCredentials(new > AuthScope(authhost), > > credentials); > > > > > > ... > > > 2011/11/15 09:32:52:130 EST [DEBUG] headers - >> GET > > /cw_common/servlet/PingCaSServlet?request=init HTTP/1.1 > > 2011/11/15 09:32:52:130 EST [DEBUG] headers - >> Host: wkqasv0304 > > 2011/11/15 09:32:52:130 EST [DEBUG] headers - >> Connection: Keep-Alive > > 2011/11/15 09:32:52:130 EST [DEBUG] headers - >> User-Agent: > > Apache-HttpClient/4.2-alpha1 (java 1.5) > > 2011/11/15 09:32:52:130 EST [DEBUG] headers - >> Authorization: NTLM > > > TlRMTVNTUAADAAAAGAAYAEAAAADGAMYAWAAAAAwADAAeAQAAGgAaACoBAAAUABQARAEAAAAAAABYAQAANQIIILSQ0oov0UPrrEPz9qPc3yv+kmCyOZd7DQvlcbZj8y0jhZwR7wjytMsBAQAAAAAAACAYynSjo8wB/pJgsjmXew0AAAAAAgAMAEcATABPAEIAQQBMAAEAFABXAEsAUQBBAFMAVgAwADMAMAA0AAQAHgBnAGwAbwBiAGEAbAAuAHMAZABsAC4AYwBvAHIAcAADADQAdwBrAHEAYQBzAHYAMAAzADAANAAuAGcAbABvAGIAYQBsAC4AcwBkAGwALgBjAG8AcgBwAAUAEABzAGQAbAAuAGMAbwByAHAAAAAAAEcATABPAEIAQQBMAGEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAVwBLAFEAQQBTAFYAMAAzADAANAA= > > 2011/11/15 09:32:52:255 EST [DEBUG] DefaultClientConnection - Receiving > > response: HTTP/1.1 500 Internal Server Error > > 2011/11/15 09:32:52:255 EST [DEBUG] headers - << HTTP/1.1 500 Internal > > Server Error > > There was an error on the server side. If you are a paying Microsoft > customer you may want to try contacting their customer support. > > Oleg > > > > > 2011/11/15 09:32:52:255 EST [DEBUG] headers - << Content-Length: 112 > > 2011/11/15 09:32:52:255 EST [DEBUG] headers - << Content-Type: text/html > > 2011/11/15 09:32:52:255 EST [DEBUG] headers - << Server: > Microsoft-IIS/6.0 > > 2011/11/15 09:32:52:255 EST [DEBUG] headers - << Date: Tue, 15 Nov 2011 > > 14:32:51 GMT > > 2011/11/15 09:32:52:255 EST [DEBUG] headers - << Connection: close > > ---------------------------------------- > > HTTP/1.1 500 Internal Server Error > > 2011/11/15 09:32:52:255 EST [DEBUG] PoolingClientConnectionManager - > > Connection [id: 0][route: {}->http://wkqasv0304][state: > > GLOBAL/administrator] can be kept alive indefinitely > > 2011/11/15 09:32:52:255 EST [DEBUG] PoolingClientConnectionManager - > > Connection released: [id: 0][route: {}->http://wkqasv0304][state: > > GLOBAL/administrator][total kept alive: 1; route allocated: 1 of 2; total > > allocated: 1 of 20] > > 2011/11/15 09:32:52:255 EST [DEBUG] PoolingClientConnectionManager - > > Connection manager is shutting down > > 2011/11/15 09:32:52:255 EST [DEBUG] DefaultClientConnection - Connection > > 0.0.0.0:55123<->10.102.11.40:80 closed > > 2011/11/15 09:32:52:255 EST [DEBUG] DefaultClientConnection - Connection > > 0.0.0.0:55123<->10.102.11.40:80 closed > > 2011/11/15 09:32:52:255 EST [DEBUG] PoolingClientConnectionManager - > > Connection manager shut down > > > > > > > > > > > > > > > > > > On Tue, Nov 15, 2011 at 3:51 AM, Oleg Kalnichevski <[email protected]> > wrote: > > > > > On Mon, Nov 14, 2011 at 11:51:36AM -0500, Milind Kadam wrote: > > > > Hi Oleg, > > > > > > > > I commented the line which use "AuthScheme" to print the Realm to > console > > > > and generated the output. Don't know whether this will help or not; > but > > > > with correct username/password; it fails to connect to IIS 6 web > server > > > > when "Integrated Windows authentication" is set. > > > > Thanks, > > > > Milind > > > > > > > > > > > > > > ... > > > > > > > 2011/11/14 11:43:16:322 EST [DEBUG] RequestTargetAuthentication - > > > > Generating response to an authentication challenge using ntlm scheme > > > > 2011/11/14 11:43:16:322 EST [WARN] RequestTargetAuthentication - NTLM > > > > authentication error: Credentials cannot be used for NTLM > authentication: > > > > org.apache.http.auth.UsernamePasswordCredentials > > > > > > You are using UsernamePasswordCredentials that are not sufficient for > NTLM > > > authentication. You should be using NTCrednetials instead. > > > > > > Oleg > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
