HTTP::DAV module errors - can't access URL

Hello, I am attempting to use the HTTP/DAV module in perl, and I have a script that transfers files to a website. However, I get the following error message:

"Couldn't open https://www.thisismyurl.com/DAV: 
The URL "https://www.thisismyurl.com/DAV" is not DAV enabled or not accessible."

I'm not really sure why it's not able to access the site. I am doing this on a MacBook Pro with Mavericks. I'm able to establish a connection to this site with Cyberduck using the same credentials. Here is the relevant part of the script (obviously I've changed the URL, username, and password):

#!/usr/bin/perl
use strict;
use warnings;
use HTTP::DAV;

my $d = HTTP::DAV->new(); 
my $url = "https://www.thisismyURL.com/DAV";

$d->credentials( -user=>"username", -pass=>"password", -url=>$url );

$d->open( -url=>$url ) or die ("Couldn't open $url: " .$d->message . "\n");