DAV Example Application


Description

This application is a simple WebDAV enabled application. WebDAV is an internet protocol which implements authoring of files contained in remote websites. This is a very simple WebDAV application in that the commands being sent to the Web server are entered by the user manually. This is intended to be an educational and a testing tool and not an end user application.

System Requirements

This application requires a PowerPC based Macintosh running MacOS 8.5 or higher. The dependancy on PowerPC/MacOS 8.5 is arbitrary - i was unable to find an older 68k system nor an installed version of MacOS earlier than 8.5. In theory, this application should run on a 68k or PowerPC system running at least MacOS 8.0. The only 'advanced' features the program uses is the ThreadManager and OpenTransport.

Download

This application can be downloaded here (approx 450 kb Stuff-It archive). For those who are technically inclined, the source code can be found here (approx 110 kb Stuff-It archive). In order to build this software, both CodeWarrior Pro 5 and the DAVLib library are required.

Usage

All of the DAV methods and HTTP headers are exposed in the main window. In the bottom half of this window, an XML document containing DAV directives can be entered by the user.

In this case, the XML entered is:

<?xml version="1.0" encoding="utf-8" ?>
<propfind xmlns="DAV:">
<prop>
<resourcetype/>
</prop>
</propfind>

What this is performing is a simple query on the web server to return all of the files contained in the directory '/'.

XML is again returned as the response from the web server.

As another example, to return a list of all of the properties known to the DAV enabled web server, put this XML document into the main window, select PROPFIND in the Method drop-down menu and select INFINITE in the Depth drop-down menu.

<?xml version="1.0" encoding="utf-8" ?>
<propfind xmlns="DAV:">
<propname/>
</propfind>

 

Known Issues

1). There is no way currently to specify the content type of the HTTP request; this prevents some servers from processing some DAV operations where XML is sent to the server.

Contact Information

You can contact the author by e-mail at tombednarz@hotmail.com

Please report any defects discovered in this software.

This software's web site is

http://www.webdav.org/goliath/davexample.html

Version History

1.0 September 7, 1999 - Initial Version

1.1 January 9, 2000 - added HTTP Port, and Options method

 

License Agreement

This software is released under the GNU General Public License, version 2.0 or above. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.