You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by je...@apache.org on 2002/09/09 12:49:02 UTC
cvs commit: jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient HttpClient.java
jericho 2002/09/09 03:49:02
Modified: src/webdav/client/src/org/apache/webdav/lib
WebdavSession.java
src/webdav/client/src/org/apache/commons/httpclient
HttpClient.java
Log:
- Make the client possible to support the https protocol.
Patched by Guido <gc...@s-und-n.de>
Thanks...
Revision Changes Path
1.23 +5 -4 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavSession.java
Index: WebdavSession.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavSession.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- WebdavSession.java 25 Apr 2002 21:15:17 -0000 1.22
+++ WebdavSession.java 9 Sep 2002 10:49:01 -0000 1.23
@@ -178,7 +178,8 @@
client.setDebug(debug);
// Set a state which allows lock tracking
client.setState(new WebdavState());
- client.startSession(httpURL.toURL());
+ client.startSession(httpURL.getHost(), httpURL.getPort(),
+ httpURL.getEscapedHttpURL().startsWith("https"));
String userName = httpURL.getUserName();
if (userName != null && userName.length() > 0) {
1.14 +4 -4 jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/HttpClient.java
Index: HttpClient.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/HttpClient.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- HttpClient.java 4 Jul 2002 10:21:38 -0000 1.13
+++ HttpClient.java 9 Sep 2002 10:49:01 -0000 1.14
@@ -825,7 +825,7 @@
Object[] param = new Object[2];
param[0] = this.sessionHost;
param[1] = new Integer(this.sessionPort);
- Socket socket = (Socket) createSocketMethod.invoke(sslSocketFactory,param);
+ socket = (Socket) createSocketMethod.invoke(sslSocketFactory,param);
} else {
socket = new Socket
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>