Hey, try to use an absolute URL as parameter in the 'putMethod' method
e.g.: webdavResource.putMethod("http://localhost:8080/slide/files/slide/files", file)
Matthias virtuallight wrote:
I am trying to write some files to my store programatically utilizing the WebDavResource putMethod. This all seems straight forward, at least on the surface. Perhaps someone can explain to me why the following will succeed : boolean success = container.putMethod("/slide/files/myfile.txt", "some text/n"); and the following will fail with a 403 forbidden error: url = new HttpURL("http://localhost:8080/slide/files/"); url.setUserinfo("root", "root"); container = new WebdavResource(url); if (container == null) { System.out.println("Container is null."); } File file = new File("c:/pdfs/myfile.txt"); if(file.exists()) { System.out.println("File is valid."); boolean success = container.putMethod(file); if(success) { System.out.println("File was added successfully."); } else { System.out.println("Failed to add file."); } I also tried this which failed as well. boolean success = container.putMethod(/slide/files, file); I have also tried using an inputstream with the same results. It would seem to me that these are the same. A file is created and written to /files. I have tried this on both the bundled tomcat version with user name root, password root which should be the administrator and with a setup in which authentication is disabled. Both yeild the same results. What have I missed? With authentication off should I not be able to do whatever I want? I am using the 2.1 version of Slide. Regards, Bill
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]