Mike, I have since changed my code to include this just before it calls
client.executeMethod(). I still get the same results. I suspect
setAuthenticationPreemptive() really only works for the web site's basic
authentication, and not for proxy authentication...I could be wrong though.

AR.

-----Original Message-----
From: Michael Becke [mailto:[EMAIL PROTECTED]
Sent: September 25, 2003 11:24 AM
To: Commons HttpClient Project
Subject: Re: How do I get passed my NT Proxy?


Aaron,

Please try using preemptive authentication.

client.getState().setAuthenticationPreemptive(true);

Mike

Rustad, Aaron wrote:

> Is there anyway I can see the response (short of setting up a sniffer)?
Why
> would this be causing a problem? On the second and third attempt, it sends
> the NTLM authentication string.
> 
> Does my code look correct?
> 
> AR.
> 
> -----Original Message-----
> From: Kalnichevski, Oleg [mailto:[EMAIL PROTECTED]
> Sent: September 25, 2003 10:17 AM
> To: Commons HttpClient Project
> Subject: RE: How do I get passed my NT Proxy?
> 
> 
> [DEBUG] wire - -<< "HTTP/1.1 407 Proxy authentication required[\r][\n]"
> [DEBUG] wire - -<< "Proxy-Authenticate: NTLM <...>=[\r][\n]"
> [DEBUG] wire - -<< "Content-Length: 503[\r][\n]"
> [DEBUG] wire - -<< "Content-Type: text/html[\r][\n]"
> ...
> [DEBUG] HttpMethodBase - -Should forcefully close connection.
> ...^
>    +-------------------------------- That is it
> 
> [DEBUG] HttpMethodBase - -Execute loop try 3
> [DEBUG] HttpMethodBase - -Opening the connection.
> ...
> There's something in the proxy's response that prompts HttpClient to force
> close the connection to the proxy, and that, of course, messes up NTLM
> authentication. The problem is that there's nothing in the log that could
> shed light as why HttpClient thinks it should drop the connection.
> 
> Folks, any idea?
> 
> 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]
> 


---------------------------------------------------------------------
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]

Reply via email to