mbecke      2003/03/12 17:23:38

  Modified:    httpclient/src/test/org/apache/commons/httpclient
                        TestWebappBasicAuth.java TestWebappHeaders.java
  Log:
  Fixed problem when testing with HTTPS.  Replaced "http" literals with getProtocol().
  
  Revision  Changes    Path
  1.11      +5 -5      
jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestWebappBasicAuth.java
  
  Index: TestWebappBasicAuth.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestWebappBasicAuth.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TestWebappBasicAuth.java  5 Mar 2003 04:02:56 -0000       1.10
  +++ TestWebappBasicAuth.java  13 Mar 2003 01:23:37 -0000      1.11
  @@ -258,7 +258,7 @@
           Credentials cred = new UsernamePasswordCredentials("jakarta", "commons");
           state.setCredentials(null, cred);
           HostConfiguration hc = new HostConfiguration();
  -        hc.setHost(getHost(), getPort(), "http");
  +        hc.setHost(getHost(), getPort(), getProtocol());
           client.setHostConfiguration(hc);
           client.setState(state);
           HeadMethod method = new HeadMethod("/"+ getWebappContext() +"/auth/basic");
  
  
  
  1.10      +6 -6      
jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestWebappHeaders.java
  
  Index: TestWebappHeaders.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestWebappHeaders.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TestWebappHeaders.java    5 Mar 2003 04:02:57 -0000       1.9
  +++ TestWebappHeaders.java    13 Mar 2003 01:23:37 -0000      1.10
  @@ -196,7 +196,7 @@
           // Note: RFC 2616 is somewhat unclear on whether a host should
           // be sent in this context - however, both Mozilla and IE send
           // the header for an IP address, instead of sending blank.
  -         client.getHostConfiguration().setHost(ip, getPort(), "http");
  +         client.getHostConfiguration().setHost(ip, getPort(), getProtocol());
           try {
               client.executeMethod(get);
           } catch (Throwable t) {
  @@ -215,7 +215,7 @@
           // is not available. Additionally, if the port is
           // something other that 80, then the port value
           // should also be present in the header.
  -         client.getHostConfiguration().setHost(hostname, getPort(), "http");
  +         client.getHostConfiguration().setHost(hostname, getPort(), getProtocol());
           try {
               client.executeMethod(get);
           } catch (Throwable t) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to