1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use HTTP::DAV;
use warnings;
$d = new HTTP::DAV;
$url = "https://webdavserver";
$d->credentials( -user=>'user', -pass=>'kennwort',
-url=>$url);
print "Connecting to $url\n";
$d->open( -url=>$url )
or die("Could not open $url: " . $d->message . "\n");
QuoteCould not open https://webdavserver/ Operation failed. You can only open a collection (directory)
Quoteopen(URL)
opens the directory (collection resource) at URL.
open will perform a propfind against URL. If the server does not understand the request then the open will fail.
Similarly, if the server indicates that the resource at URL is NOT a collection, the open command will fail.