mounting webdav using wdfs

To mount a webdav server, I am following instructions laid out at Mounting drives and boot options in Linux :: bobpeers.com under the section titled Mounting WebDAV filesystems (using wdfs)

I’m doing these steps as root. These work:

# mkdir /mnt/webdav
# mkdir ~/mountpoint
# wdfs http://localhost/webdav/ ~/mountpoint

But not the next one:

# wdfs https://localhost/webdav /mnt/webdav -o username=<my_username>,password=<my_password>,allow_other

After asking me to approve my self-signed certificate, I get this error:

error: could not mount remote server ‘http://localhost/webdav’. reason: 301 Moved Permanently to ‘http://localhost/webdav/’.

This is a working webdav server. I can log in from my Mac and from within the localhost (but not from my Windows machines – which is another question altogether).

Does anyone know the possible causes of this error when I issue the command to mount the webdav filesystem?

fogelfish wrote:
…]
>> # wdfs http://localhost/webdav/ ~/mountpoint
> But not the next one:
>> # wdfs https://localhost/webdav /mnt/webdav -o
^ I notice a missing / here.
…]
>> ## error: could not mount remote server ‘http://localhost/webdav’.
>> reason: 301 Moved Permanently to ‘http://localhost/webdav/’.

Did you try the wdfs comand with a slash, as in
wdfs https://localhost/webdav/ /mnt/webdav -o
username=<my_username>,password=<my_password>,allow_other
?

LittleRedRooster, thanks! I added a slash like this:

wdfs https://localhost/webdav/ /mnt/webdav -o username=<user>,password=<pass>,allow_other

and received no complaint. In hindsight I can see that was what the computer was trying to tell me.