Hi! I'm trying to access a collection using the Perl Cal::DAV library and not
having a lot of success.
I've created a collection and imported a .ics file ok.
My perl code attempts to connect to caldav.php but I'm getting an
authorisation error. The code is:
#!/usr/bin/perl
use strict;
use warnings;
use Cal::DAV;
use Data::Dumper;
my $url = "http://localhost/davical/htdocs/caldav.php/Football/BarrowAFC/";
my $cal = Cal::DAV->new(url => $url, user => "admin", pass => "xxxxxx");
$cal->get;
print Dumper($cal);
======================
The Dumper() utility outputs:
======================
$VAR1 = bless( {
'url' =>
'http://localhost/davical/htdocs/caldav.php/Football/BarrowAFC/',
'_dav' => bless( {
'_lockedresourcelist' => bless( {
'_resources'
=> undef
},
'HTTP::DAV::ResourceList' ),
'_status' => 0,
'_message' => 'get
http://localhost/davical/htdocs/caldav.php/Football/BarrowAFC/ failed:
Unauthorized',
'_comms' => bless( {
'_last_request' =>
bless( {
However, if I change the URL in my code to public.php it works ok. So I've got
some sort of authorisation issue but I don't know what. I've checked access
rights of the collection by using Chandler and that's ok so my userid and
password is not incorrect.
Has DAViCal (caldav.php) been proved to work with Cal::DAV?
Thanks in advance!
--
having a lot of success.
I've created a collection and imported a .ics file ok.
My perl code attempts to connect to caldav.php but I'm getting an
authorisation error. The code is:
#!/usr/bin/perl
use strict;
use warnings;
use Cal::DAV;
use Data::Dumper;
my $url = "http://localhost/davical/htdocs/caldav.php/Football/BarrowAFC/";
my $cal = Cal::DAV->new(url => $url, user => "admin", pass => "xxxxxx");
$cal->get;
print Dumper($cal);
======================
The Dumper() utility outputs:
======================
$VAR1 = bless( {
'url' =>
'http://localhost/davical/htdocs/caldav.php/Football/BarrowAFC/',
'_dav' => bless( {
'_lockedresourcelist' => bless( {
'_resources'
=> undef
},
'HTTP::DAV::ResourceList' ),
'_status' => 0,
'_message' => 'get
http://localhost/davical/htdocs/caldav.php/Football/BarrowAFC/ failed:
Unauthorized',
'_comms' => bless( {
'_last_request' =>
bless( {
However, if I change the URL in my code to public.php it works ok. So I've got
some sort of authorisation issue but I don't know what. I've checked access
rights of the collection by using Chandler and that's ok so my userid and
password is not incorrect.
Has DAViCal (caldav.php) been proved to work with Cal::DAV?
Thanks in advance!
--