You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/04/13 14:53:17 UTC
DO NOT REPLY [Bug 8040] -
need a way to set default credential in HttpState
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8040>.
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 <i>realm</i> is <code>null</code>, I'll use the given
* <i>credentials</i> when no other {@link Credentials} have
* been supplied for the given challenging realm.
* (I.e., use a <code>null</code> 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>