* resource.setProperties(WebdavResource.NOACTION, 1);
*/
resource.setHttpURL(url, WebdavResource.NOACTION, 1);
client = resource.retrieveSessionInstance();
HttpClientHandler handler = new HttpClientHandler();
int httpClientVersion = handler.getHttpClientMajorVersion();
if (httpClientVersion == 2) {
// VFS only supports httpclient v2 for now...
client.setHttpConnectionManager(new WebdavConnectionManager());
} else {
client.setHttpConnectionManager(new IvyWebdavConnectionManager());