commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/examples BasicAuthenticationExample.java BasicAuthenticatonExample.java
Date Wed, 13 Aug 2003 20:33:30 GMT
olegk       2003/08/13 13:33:30

  Added:       httpclient/src/examples Tag: HTTPCLIENT_2_0_BRANCH
                        BasicAuthenticationExample.java
  Removed:     httpclient/src/examples Tag: HTTPCLIENT_2_0_BRANCH
                        BasicAuthenticatonExample.java
  Log:
  Spelling mistake in BasicAuthenticationExample class name corrected.
  
  Contributed by David Rowe
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.1   +6 -7      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
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- BasicAuthenticationExample.java	13 Aug 2003 20:30:40 -0000	1.1
  +++ BasicAuthenticationExample.java	13 Aug 2003 20:33:30 -0000	1.1.2.1
  @@ -83,12 +83,11 @@
           HttpClient client = new HttpClient();
   
           // pass our credentials to HttpClient, they will only be used for
  -        // authenticating to servers with realm "realm" on the host
  -        // "www.verisign.com", to authenticate against
  -        // an arbitrary realm or host change the appropriate argument to null.
  +        // authenticating to servers with realm "realm", to authenticate agains
  +        // an arbitrary realm change this to null.
           client.getState().setCredentials(
  -            "realm",
               "www.verisign.com",
  +            "realm",
               new UsernamePasswordCredentials("username", "password")
           );
   
  
  
  

Mime
View raw message