lookfirst / sardine

an easy to use webdav client for java
Other
579 stars 185 forks source link

ClientProtocalException when using sardine to download some files from webDav #300

Closed khaledAKA closed 1 year ago

khaledAKA commented 6 years ago

Here is my code. I make sure that the credentials is correct

private void downloadFromWebdav(String webDavPath, String username, String password) throws IOException {
        Sardine sardine = SardineFactory.begin(username, password);
        List<DavResource> resources = sardine.list(webDavPath, 1);
        for (DavResource res : resources) {
            System.out.println(res);
        }
    }