HTTP::DAV

HTTP::DAV is a WebDAV client library for Perl5.
Download

HTTP::DAV Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Patrick Collins
  • Publisher web site:
  • http://search.cpan.org/~pcollins/HTTP-DAV-0.31/DAV.pm

HTTP::DAV Tags


HTTP::DAV Description

HTTP::DAV is a WebDAV client library for Perl5. HTTP::DAV is a WebDAV client library for Perl5.SYNOPSIS # DAV script that connects to a webserver, safely makes # a new directory and uploads all html files in # the /tmp directory. use HTTP::DAV; $d = new HTTP::DAV; $url = "http://host.org:8080/dav/"; $d->credentials( -user=>"pcollins",-pass =>"mypass", -url =>$url, -realm=>"DAV Realm" ); $d->open( -url=>"$url ) or die("Couldn't open $url: " .$d->message . "n"); # Make a null lock on newdir $d->lock( -url => "$url/newdir", -timeout => "10m" ) or die "Won't put unless I can lock for 10 minutesn"; # Make a new directory $d->mkcol( -url => "$url/newdir" ) or die "Couldn't make newdir at $urln"; # Upload multiple files to newdir. if ( $d->put( -local => "/tmp/*.html", -url => $url ) ) { print "successfully uploaded multiple files to $urln"; } else { print "put failed: " . $d->message . "n"; } $d->unlock( -url => $url ); Here are some key features of "HTTP::DAV": · Full RFC2518 method support. OPTIONS, TRACE, GET, HEAD, DELETE, PUT, COPY, MOVE, PROPFIND, PROPPATCH, LOCK, UNLOCK. · A fully object-oriented API. · Recursive GET and PUT for site backups and other scripted transfers. · Transparent lock handling when performing LOCK/COPY/UNLOCK sequences. · http and https support (https requires the Crypt::SSLeay library). See INSTALLATION. · Basic AND Digest authentication support (Digest auth requires the MD5 library). See INSTALLATION. · dave, a fully-functional ftp-style interface written on top of the HTTP::DAV API and bundled by default with the HTTP::DAV library. (If you've already installed HTTP::DAV, then dave will also have been installed (probably into /usr/local/bin). You can see it's man page by typing "perldoc dave" or going to http://www.webdav.org/perldav/dave/. · It is built on top of the popular LWP (Library for WWW access in Perl). This means that HTTP::DAV inherits proxy support, redirect handling, basic (and digest) authorization and many other HTTP operations. See LWP for more information. · Popular server support. HTTP::DAV has been tested against the following servers: mod_dav, IIS5, Xythos webfile server and mydocsonline. The library is growing an impressive interoperability suite which also serves as useful "sample scripts". See "make test" and t/*. Requirements: · Perl


HTTP::DAV Related Software