The open function expects a URL, passing only the directory name would lead HTTP::DAV to try looking it as an hostname on the network and only return after it timed out.
@@ -520,7 +520,7 @@ sub put_to_dir( $$;$ )
$targetUrl = $optionsRef->{url};
}
- $d->open($dir);
+ $d->open($targetUrl . $dir);
my $filename = $file;
$filename =~ s/^.*\///;