HTTP::Webdav

HTTP::Webdav is a Perl interface to Neon HTTP and WebDAV client library.
Download

HTTP::Webdav Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Gerald Richter
  • Publisher web site:
  • http://search.cpan.org/~grichter/HTTP-Webdav-0.1.18-0.17.1/Webdav.pod

HTTP::Webdav Tags


HTTP::Webdav Description

HTTP::Webdav is a Perl interface to Neon HTTP and WebDAV client library. HTTP::Webdav is a Perl interface to Neon HTTP and WebDAV client library.SYNOPSIS use HTTP::Webdav ; $sess = HTTP::Webdav -> new ; $sess -> server ("www.ecos.de", 80) ; $sess -> get ("/", STDOUT) ; $sess -> put ("/dav/foo.htm", STDIN) ; # remove property 'test3' # set value of property 'test' to 'bar' @props = ( { name => {nspace => 'DAV:', name => 'test3'}, type => 1}, { name => {nspace => 'DAV:', name => 'test'}, value => 'bar'}, ) ; $sess -> proppatch ("/dav/foo.htm", @props) ; sub iterator { my ($userdata, $propname, $propvalue, $propstatus) = @_ ; print "propfind userdata = $userdata nspace = $propname->{nspace} name = $propname->{name} value = $propvaluen" ; return 0 ; } sub callback { my ($userdata, $href, $results) = @_ ; print "propfind callback userdata = $userdata href = $hrefn" ; $results -> iterate (&iterator) ; } $sess -> simple_propfind ("/dav", NE_DEPTH_ONE, undef, &callback) ; print "Status: ", $sess -> get_error , "n" ;The neon API is encapsultated in a number of Perl classes. Everything that doesn't fit in a class has gone to HTTP::Webdav::Util. (Maybe some of these function will move to other classes in the future)The clases areHTTP::WebdavMain class which holds a http sessionHTTP::Webdav::MultiStatusClass to handle 207 responsesHTTP::Webdav::HipInterface to XML parser for propertiesHTTP::Webdav::LockHolds a lockHTTP::Webdav::LockSessionHolds a lock sessionHTTP::Webdav::PropfindClass to access the result of a PROPFINDHTTP::Webdav::PropsetClass to acess properties of one resourceHTTP::Webdav::RequestLow level interface to http requestHTTP::Webdav::MD5MD5 checksumHTTP::Webdav::SSLSSL supportHTTP::Webdav::SocketLow level socket accessWARNING: This wrapper is alpha code, while neon is around for some time and stable to use, not all of the interface functions provided by this Perl module has been tested extensivly, but most of them should work without problems (At least they do it for me).Requirements:· Perl


HTTP::Webdav Related Software