Kodi Community Forum

Full Version: Can't access WebDAV in kodi - works in browser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

I setup a webdav server yesterday using windows 7 built in functionality (IIS) (please don't kill me for this). I setup virtual drives and enabled directory browsing, set authentication to basic auth only as the wiki suggests and made it accessible via SSL (self signed certificate) and non encrypted. Server has a static IP, port forwarding is set.

Now I can access my shares both in my local network and from outside with any browser via "http://<user>:<pass>@<server.ip>:80/share/" or "https://<user>:<pass>@<server.ip>:443/share/" with the obligatory certificate warning because self signed.

But kodi 15.2 refuses to connect. No matter if it's a windows or an android machine. Here's a snip from the log of my android device:
Code:
DEBUG: CGUIMediaWindow::GetDirectory (dav://USERNAME:[email protected]:80/zeug/)
DEBUG:   ParentPath = [sources://video/]
DEBUG: CurlFile::Open(0xdc817b20) http://188.194.31.30:80/zeug/
INFO: void XCURL::DllLibCurlGlobal::easy_aquire(const char*, const char*, XCURL::CURL_HANDLE**, XCURL::CURLM**) - Created session to http://188.194.31.30
ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 400
ERROR: CCurlFile::Open failed with code 400 for dav://USERNAME:[email protected]:80/zeug/
ERROR: virtual bool XFILE::CDAVDirectory::GetDirectory(const CURL&, CFileItemList&) - Unable to get dav directory (dav://USERNAME:[email protected]:80/zeug/)
ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting dav://USERNAME:[email protected]:80/zeug/
ERROR: CGUIMediaWindow::GetDirectory(dav://USERNAME:[email protected]:80/zeug/) failed

In case I snipped to much here's the full log (link)

If the common opinion should be to not use windows to setup webdav I'd be happy to try something else. But I'm no expert so a few pointers would be greatly appreciated! Smile

Thanks for any help or for just reading this
SM
Nobody got an idea? Anyone using webDAV and windows with a working setup I could try to copy?
did you ever get this going?

I am using apache on a debian box same sort of issues...

I think its the self-cert, is there a way to say TRUST it in kodi, when in the norm (in browsers at least) is not too.
I got it working back then for my other shares but the one above (which I tried first) never worked. Even though they were set up identically. Unfortunately since I had to reset my server nothing works.

Have you tried it without ssl as a test? If that doesn't work either I wouldn't think the self-cert is your (only) problem.
(2016-07-31, 18:06)javaboyuk Wrote: [ -> ]did you ever get this going?

I am using apache on a debian box same sort of issues...

I think its the self-cert, is there a way to say TRUST it in kodi, when in the norm (in browsers at least) is not too.

on linux you can simply import your server cert as trusted:
Code:
cp [your_cert] /etc/ssl/certs/
sudo update-ca-certificates