axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http HTTPSender.java
Date Fri, 07 Dec 2001 21:55:33 GMT
dims        01/12/07 13:55:33

  Modified:    java/src/org/apache/axis/transport/http HTTPSender.java
  Log:
  Fixes for HTTPS via Proxy:
  - Added User-Agent to avoid "javax.net.ssl.SSLException: SSL V2.0 servers are not supported."
  
  Revision  Changes    Path
  1.42      +5 -1      xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
  
  Index: HTTPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- HTTPSender.java	2001/12/07 21:19:04	1.41
  +++ HTTPSender.java	2001/12/07 21:55:33	1.42
  @@ -167,9 +167,13 @@
   
                           // The tunnel handshake method (condensed and made reflexive)
                           OutputStream tunnelOutputStream = (OutputStream)SSLSocketClass.getMethod("getOutputStream",
new Class[] {}).invoke(tunnel, new Object[] {});
  +
                           PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(tunnelOutputStream)));
  -                        out.print("CONNECT " + host + ":" + port + " HTTP/1.0\n\r\n\r");
  +                        out.print("CONNECT " + host + ":" + port + " HTTP/1.0\n"
  +                                  + "User-Agent: AxisClient"
  +                                  + "\r\n\r\n");
                           out.flush();
  +                        
                           InputStream tunnelInputStream = (InputStream)SSLSocketClass.getMethod("getInputStream",
new Class[] {}).invoke(tunnel, new Object[] {});
                           if (category.isDebugEnabled()) {
                               category.debug(JavaUtils.getMessage("isNull00", 
  
  
  

Mime
View raw message