commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8040] - need a way to set default credential in HttpState
Date Sat, 13 Apr 2002 12:53:17 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message