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

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to