support Sardine.setServerBase(String url)?
valuetodays opened this issue · 0 comments
valuetodays commented
Assume a server is https://dav.xxx.com/dav/
.
I have to use full url such like https://dav.xxx.com/dav/foo/bar.zip
when i deal with file.
sardine.put("https://dav.xxx.com/dav/foo/bar.zip", new File(bar.zip), "*/*");
I think /foo/bar.zip
or foo/bar.zip
is more convenient,
Sardine sardine = SardineFactory.begin();
sardine.setCredentials(username, password);
sardine.setServerBase("https://dav.xxx.com/dav/"); // not support in 5.10
sardine.put("foo/bar.zip", new File(bar.zip), "*/*"); // this is more convenient and readable.