hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: How do I get passed my NT Proxy?
Date Thu, 25 Sep 2003 17:24:05 GMT
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:oleg.kalnichevski@bearingpoint.com]
> 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:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message