saguiitay / WebDAVClient

Strongly-typed, async WebDAV Client implementation in C#
Other
120 stars 55 forks source link

Not working with owncloud #20

Open squadwuschel opened 8 years ago

squadwuschel commented 8 years ago

Hi,

I've tried your Implementation with owncloud and it's not working.

var client = new WebDAVClient.Client(new NetworkCredential { UserName = "myUserName",  Password = "MyPw" });
var baseUrl = "https://myUrl/remote.php/webdav/";

client.Server = baseUrl;
client.BasePath = "/";
var files = await client.List();

Then I've tried this GitHub Repo

https://github.com/DecaTec/Portable-WebDAV-Library

with the same URLs I've tried with your Implementation and there it works fine.

LukeOwlclaw commented 7 years ago

What does "it's not working" mean? I also tried to access ownCloud but my test program just terminated without any error or exception. I could solve the issue by editing Server and BasePath properties:

client.Server = "https://myUrl";
client.BasePath = "remote.php/dav/files/username/";
Tallmaris commented 7 years ago

Hi LukeOwnCloud, It is not entirely clear that the /remote.php/webdav part should go into the BasePath rather that the endpoint. Thanks anyway for the solution, I was almost getting there through trials and errors :D

L.