>However, some forms of PROPFIND may be broken. Could you post any traces /
>error reports from the client side (as well as some code) ?
>Remy
Here is the src code
public class TPut {
public static void main(String[] arg){
try{
int result=0;
WebdavClient client = new WebdavClient();
Credentials crd = new Credentials("root","admin");
client.setCredentials(crd);
client.startSession("localhost", 8080);
File f = new File("c:\\simple.txt");
FileInputStream fis= new FileInputStream(f);
PutMethod pm = new PutMethod();
String des = f.getPath();
pm.setPath("/slide/sql.txt");
pm.sendData(fis);
client.executeMethod(pm);
}catch(Exception e){
e.printStackTrace(System.out);
System.out.println(e.toString());
}
}
}
And stacktrace is
at org.apache.webdav.lib.WebdavClient.executeMethod(WebdavClient.java:393)
at pra.TPut.main(TPut.java:41)
org.apache.webdav.lib.WebdavException: Unable to process request
Thanks ,
Rama