W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > October to December 2000

Re: Looking for Java WebDav clients..response

From: csamson <csamson@ndirect.co.uk>
Date: Sat, 25 Nov 2000 13:46:21 -0000
Message-ID: <004f01c056e6$3809b140$0200000a@ojzxmxqo>
To: "WebDAV WG" <w3c-dist-auth@w3.org>, "Jim Whitehead" <ejw@cse.ucsc.edu>
A few months ago, I was looking for examples of simple Java client code
for accessing a WebDAV server. There are relatively few examples of any
HTTP Java client code available on the internet, let alone WebDAV !

I put the following test program together  (thanks also to the WebDAV list
a few pieces of advice).  Rather than the overhead of a full XML parser, I
wrote a simple routine to extract the elements I wanted from the returned

The example tests GET, PROPFIND, LOCK, PUT and UNLOCK, shows
how to implement Basic Authentication and how to handle locktokens.

As IE does not have a Java Console, I write messages out to the
screen once each example has been called.  No apologies for the code -
it's messy but it worked for testing purposes !

It works over the Internet with Sharemation, but not mydocsonline as this
does not seem to support the Lock command.

To test this out on Sharemation, which supports WebDAV
a) create a user account.
b)add a file such as  rfc2518.htm
c) run from within your Java environment (or create an applet) with the
parameter properties set....

<param name=user value=username>
<param name=pass value=password>
<param name=page value="http://www.sharemation.com/~username/rfc2518.htm">

where username and password are the sharemation account username and

The Java source can be downloaded from www.screenplan.com/webdav.html

I'd welcome comments - please post any feedback to the working group, if
appropriate, or mail me separately.


JC Samson

-----Original Message-----
From: Jim Whitehead <ejw@cse.ucsc.edu>
To: WebDAV WG <w3c-dist-auth@w3.org>
Date: 22 November 2000 04:06
Subject: FW: Looking for Java WebDav clients..

>Accidentally caught by the spam filter.  I've added Anselm Rajendra to the
>accept2 list.
>- Jim
>-----Original Message-----
>From: Anslem Rajendra [mailto:AnslemR@truespectra.com]
>Sent: Tuesday, November 21, 2000 2:43 PM
>To: 'w3c-dist-auth@w3.org'
>Subject: [Moderator Action] Looking for Java WebDav clients..
>My company is investigating the possiblity of creating an asset management
>soln using webDav.  I was looking for any Java webDav clients with source
>code that may be helpful in this endevour.  Would you know if there are any
>out there.  Also, would there be any libraries within Sun's java libraries
>to support this in the future.
Received on Saturday, 25 November 2000 08:41:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:22 UTC