Article:
  Sliding into WebDAV
Subject:   GET
Date:   2005-11-09 16:47:27
From:   vballarta
HI I HAVE THIS CODE TO PUT FILES..IT 'S WORK BUT IN MY COMPUTER SERVER(PUT FILES FOR EXAMPLE LOCATED IN C:) NO WORK IN CLIENTS MACHINE..HOW CAN I DO TO INDICATE THAT I LIKE TO PUT FILES FROM MY DRIVE DISK OF MY CLIENT MACHINE ??
HttpURL hrl =
new HttpURL("http://localhost:8080/slide/files/JPR/fluyo");
hrl.setUserInfo("fluyo","fluyo");
WebdavResource wdr =new WebdavResource(hrl);
String filename = ruta.substring(3);
String unidad =ruta.substring(0,2);

File fn = new File(unidad +"/"+filename);

String path = wdr.getPath() + "/" + filename;
wdr.putMethod(path,fn);