I had to extend the anycodings_java ".client.LaxRedirectStrategy" anycodings_java and also the getRedirect() Method of anycodings_java .client.DefaultRedirectStrategy anycodings_java with a treatment of the needed methods: anycodings_java PUT, MKOL, etc.
#Webdav file synchronization code#
Please either help me fix my code or link me anycodings_webdav to some file synchronization library that anycodings_webdav works for my purpose. Printing out the folders in that directory anycodings_webdav works so the connection/ authentication did anycodings_webdav succeed: List resources = sardine.list("") but throws an exception instead: Exception in thread "main" .SardineException: Unexpected response (301 Moved Permanently)Īt .(ValidatingResponseHandler.java:48)Īt .(VoidResponseHandler.java:34)Īt .(VoidResponseHandler.java:1)Īt .(CloseableHttpClient.java:218)Īt .(CloseableHttpClient.java:160)Īt .SardineImpl.execute(SardineImpl.java:828)Īt .SardineImpl.put(SardineImpl.java:755)Īt .SardineImpl.put(SardineImpl.java:738)Īt .SardineImpl.put(SardineImpl.java:726)Īt .SardineImpl.put(SardineImpl.java:696)Īt .SardineImpl.put(SardineImpl.java:689)Īt .SardineImpl.put(SardineImpl.java:682)Īt .SardineImpl.put(SardineImpl.java:676) InputStream fis = new FileInputStream(new File("some/file/test.txt")) Sardine sardine = SardineFactory.begin("username", "password") The following code is supposed to upload the anycodings_webdav file.
Is there any code anycodings_webdav for hard-copying a local source folder to an anycodings_webdav external cloud folder? I haven't found anycodings_webdav anything in that direction. I'm therefore trying to implement it in Java anycodings_webdav using the Sardine project.
The client anycodings_webdav application they provide is poor and buggy anycodings_webdav so I tried various other tools for anycodings_webdav synchronization but none just worked the way anycodings_webdav I need it. Note anycodings_webdav that it's based on HTTP. I have a cloud storage at strato namely anycodings_webdav hidrive.