Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 51341 invoked from network); 13 Apr 2002 12:53:19 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Apr 2002 12:53:19 -0000 Received: (qmail 13557 invoked by uid 97); 13 Apr 2002 12:53:18 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 13531 invoked by uid 97); 13 Apr 2002 12:53:18 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 13500 invoked by uid 50); 13 Apr 2002 12:53:17 -0000 Date: 13 Apr 2002 12:53:17 -0000 Message-ID: <20020413125317.13499.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 8040] - need a way to set default credential in HttpState X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8040 need a way to set default credential in HttpState rwaldhof@us.britannica.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From rwaldhof@us.britannica.com 2002-04-13 12:53 ------- Not sure which version of HTTP Client you're looking at, but the 2.x versions, including the nightly builds, already have precisely the behavior you describe. See the basic() method of Authenticator for the implementation. In fact, this behavior is documented in HttpState's setCredentials: * When realm is null, I'll use the given * credentials when no other {@link Credentials} have * been supplied for the given challenging realm. * (I.e., use a null realm to set the "default" * credentials.) See http://nagoya.apache.org/gump/javadoc/jakarta- commons/httpclient/dist/docs/api/org/apache/commons/httpclient/HttpState.html#se tCredentials(java.lang.String, org.apache.commons.httpclient.Credentials) -- To unsubscribe, e-mail: For additional commands, e-mail: