All righty, here's my file test case that is screwing up.  

import org.apache.webdav.lib.*;
import org.apache.util.HttpURL;

import java.io.*;

public class Test {

    public static void main (String args[]) throws Exception {
        File file = new File(args[0]);
       
        HttpURL httpurl = new HttpURL("http://address:8080/to/slide";);
        httpurl.setUserInfo("username", "password");
        WebdavResource wdr = new WebdavResource(httpurl, 
WebdavResource.NOACTION, 0);
       
        wdr.putMethod("test", file);
    }
}

When I run this program I get the following exception:

Exception in thread "main" org.apache.commons.httpclient.HttpException: 
Unable to process request
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:615)
        at 
org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2319)
        at Test.main(Test.java:15)

Seems wierd to me.  I would investigate the httpclient source code, but 
its not tagged or anything in the cvs repository so I have no clue which 
version I'm using!  It would be great if someone could provide some 
insight on how I should do that.


Thanks,

Dan Diephouse



Reply via email to