NAME

HTTP::DAV - A WebDAV client library for Perl5

SYNOPSIS

use HTTP::DAV;

$dav = HTTP::DAV->new;
$dav->credentials( "pcollins", "mypass", "http://localhost/" );
$resource = $dav->new_resource( -uri => "http://localhost/dav/myfile.txt" );

$response = $resource->lock;
$response = $resource->put("New file contents\n");
print "BAD PUT\n" unless $response->is_success;
$response = $resource->unlock;

$resource->propfind;
print "BAD PROPFIND\n" unless $response->is_success;
$getlastmodified = $resource->get_property( "getlastmodified" );
print "Last modified $getlastmodified\n";

See HTTP::DAV::Resource for all of the operations allowed against a resource.

DESCRIPTION

This is DAV.pm (or HTTP::DAV), a Perl5 library for interacting and modifying content on webservers using the WebDAV protocol. Now you can LOCK, DELETE and PUT files and much more on a DAV-enabled webserver. Learn more about WebDAV at http://www.webdav.org/

new

Creates a new DAV client

$dav = HTTP::DAV->new()
new_resource

Creates a new resource object with which to play.

$dav->new_resource( -uri => "http://..." );
as_string

Method returning a textual representation of the request. Mainly useful for debugging purposes. It takes no arguments.

e.g.
$dav->as_string()

COPYRIGHT

Copyright 2000, Patrick Collins.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.