You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ad...@apache.org on 2003/07/16 01:37:48 UTC

cvs commit: jakarta-commons/httpclient/src/examples BasicAuthenticatonExample.java

adrian      2003/07/15 16:37:48

  Modified:    httpclient/src/examples BasicAuthenticatonExample.java
  Log:
  Fixed arguments to setCredential to be realm, host, creds instead of host, realm, creds.
  
  Revision  Changes    Path
  1.5       +7 -6      jakarta-commons/httpclient/src/examples/BasicAuthenticatonExample.java
  
  Index: BasicAuthenticatonExample.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/examples/BasicAuthenticatonExample.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- BasicAuthenticatonExample.java	7 Apr 2003 19:23:35 -0000	1.4
  +++ BasicAuthenticatonExample.java	15 Jul 2003 23:37:48 -0000	1.5
  @@ -83,11 +83,12 @@
           HttpClient client = new HttpClient();
   
           // pass our credentials to HttpClient, they will only be used for
  -        // authenticating to servers with realm "realm", to authenticate agains
  -        // an arbitrary realm change this to null.
  +        // 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.
           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