Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 4301 invoked from network); 14 Jan 2004 15:55:17 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Jan 2004 15:55:17 -0000 Received: (qmail 84542 invoked by uid 500); 14 Jan 2004 15:55:10 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 84512 invoked by uid 500); 14 Jan 2004 15:55:10 -0000 Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Commons HttpClient Project" Reply-To: "Commons HttpClient Project" Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 84499 invoked from network); 14 Jan 2004 15:55:10 -0000 Received: from unknown (HELO mxout2.cac.washington.edu) (140.142.33.4) by daedalus.apache.org with SMTP; 14 Jan 2004 15:55:10 -0000 Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout2.cac.washington.edu (8.12.10+UW03.09/8.12.10+UW03.09) with ESMTP id i0EFtCbS021704 for ; Wed, 14 Jan 2004 07:55:12 -0800 Received: from [10.0.1.2] (pool-129-44-183-43.bos.east.verizon.net [129.44.183.43]) (authenticated bits=0) by smtp.washington.edu (8.12.10+UW03.09/8.12.10+UW03.09) with ESMTP id i0EFtANH003487 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 14 Jan 2004 07:55:11 -0800 Mime-Version: 1.0 (Apple Message framework v609) In-Reply-To: <825BF35A92B3F0479CC164ECBBE9376E5F031A@kccxoex06.corp.kpmgconsulting.com> References: <825BF35A92B3F0479CC164ECBBE9376E5F031A@kccxoex06.corp.kpmgconsulting.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <054F8D04-46AA-11D8-8F37-00306557E112@u.washington.edu> Content-Transfer-Encoding: 7bit From: Michael Becke Subject: Re: [PATCH] deprecated HttpState#isAuthenticationPreemptive no longer has any effect Date: Wed, 14 Jan 2004 10:55:05 -0500 To: "Commons HttpClient Project" X-Mailer: Apple Mail (2.609) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes, it's a hack, but that is what I was thinking as well. Works for me. Mike On Jan 14, 2004, at 10:05 AM, Kalnichevski, Oleg wrote: > Mike, I can't think of anything better than this hack. Any better > ideas? > > > Index: java/org/apache/commons/httpclient/HttpMethodDirector.java > =================================================================== > RCS file: > /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/ > commons/httpclient/HttpMethodDirector.java,v > retrieving revision 1.13 > diff -u -r1.13 HttpMethodDirector.java > --- java/org/apache/commons/httpclient/HttpMethodDirector.java 12 Jan > 2004 23:03:12 -0000 1.13 > +++ java/org/apache/commons/httpclient/HttpMethodDirector.java 14 Jan > 2004 14:58:50 -0000 > @@ -195,8 +195,9 @@ > this.params.getConnectionManagerTimeout() > ); > this.conn.setLocked(true); > - if (this.params.isAuthenticationPreemptive()) { > - > + if (this.params.isAuthenticationPreemptive() || > + this.state.isAuthenticationPreemptive()) > + { > LOG.debug("Preemptively sending default basic > credentials"); > this.authState = AUTH_PREEMPTIVE; > this.authScheme = > AuthPolicy.getAuthScheme("basic"); > > > --------------------------------------------------------------------- > 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