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 gc...@s-und-n.de on 2002/09/04 13:58:04 UTC
Slide WebDAV Client over SSL
Hi,
while trying to get Slide WebDAV Client running over SSL, we figured we had
to make the following minor changes to current CVS:
Index: client/src/org/apache/commons/httpclient/HttpClient.java
===================================================================
RCS file:
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/HttpClient.java,v
retrieving revision 1.13
diff -r1.13 HttpClient.java
828c828
< Socket socket = (Socket)
createSocketMethod.invoke(sslSocketFactory,param);
---
> socket = (Socket)
createSocketMethod.invoke(sslSocketFactory,param);
Index: client/src/org/apache/webdav/lib/WebdavSession.java
===================================================================
RCS file:
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavSession.java,v
retrieving revision 1.22
diff -r1.22 WebdavSession.java
181,182c181,184
< client.startSession(httpURL.toURL());
<
---
> client.startSession(httpURL.getHost(),
> httpURL.getPort(),
> httpURL.getEscapedHttpURL().startsWith
("https"));
>
Thanks
Guido
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Slide WebDAV Client over SSL
Posted by Sung-Gu <je...@apache.org>.
I agree with you about the bug... :)
The fundamental problem is supporting HttpURL directly...
That's why URI class supportting HttpURL and HttpsURL
instead of GenericURI class is required.
One thing that you indicate is URI escaping by the
HttpURL.getEscapedHttpURL method in your code as I see.
Actually, the URL and URI class in JDK don't support URI
escaping form. Am I right? --a
I insist we need to support the some API change for these issues.
Sung-Gu
----- Original Message -----
From: <gc...@s-und-n.de>
To: <sl...@jakarta.apache.org>
Sent: Wednesday, September 04, 2002 8:58 PM
Subject: Slide WebDAV Client over SSL
> Hi,
>
> while trying to get Slide WebDAV Client running over SSL, we figured we
had
> to make the following minor changes to current CVS:
>
>
> Index: client/src/org/apache/commons/httpclient/HttpClient.java
> ===================================================================
> RCS file:
>
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/commons/httpc
lient/HttpClient.java,v
> retrieving revision 1.13
> diff -r1.13 HttpClient.java
> 828c828
> < Socket socket = (Socket)
> createSocketMethod.invoke(sslSocketFactory,param);
> ---
> > socket = (Socket)
> createSocketMethod.invoke(sslSocketFactory,param);
> Index: client/src/org/apache/webdav/lib/WebdavSession.java
> ===================================================================
> RCS file:
>
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/We
bdavSession.java,v
> retrieving revision 1.22
> diff -r1.22 WebdavSession.java
> 181,182c181,184
> < client.startSession(httpURL.toURL());
> <
> ---
> > client.startSession(httpURL.getHost(),
> > httpURL.getPort(),
> > httpURL.getEscapedHttpURL().startsWith
> ("https"));
> >
>
>
> Thanks
> Guido
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>