You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ol...@apache.org on 2003/12/08 23:10:30 UTC
cvs commit: jakarta-commons/httpclient/src/examples BasicAuthenticationExample.java
olegk 2003/12/08 14:10:30
Modified: httpclient/src/examples Tag: HTTPCLIENT_2_0_BRANCH
BasicAuthenticationExample.java
Log:
PR: #25249
Fixes mixed up authentication host & realm parameters in the basic authentication example
Contibuted by Oleg Kalnichevski
Revision Changes Path
No revision
No revision
1.1.2.2 +4 -4 jakarta-commons/httpclient/src/examples/BasicAuthenticationExample.java
Index: BasicAuthenticationExample.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/examples/BasicAuthenticationExample.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- BasicAuthenticationExample.java 13 Aug 2003 20:33:30 -0000 1.1.2.1
+++ BasicAuthenticationExample.java 8 Dec 2003 22:10:30 -0000 1.1.2.2
@@ -86,8 +86,8 @@
// authenticating to servers with realm "realm", to authenticate agains
// an arbitrary realm change this to null.
client.getState().setCredentials(
- "www.verisign.com",
"realm",
+ "www.verisign.com",
new UsernamePasswordCredentials("username", "password")
);
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org