props.add(new PropertyName(namespace, name));
PropFindMethod propfindMethod = new PropFindMethod(url, 0, props.elements());
propfindMethod.setDoAuthentication(true);
HttpState httpState = new HttpState();
httpState.setCredentials(null, host, credentials);
int state = propfindMethod.execute(httpState, new HttpConnection(host, port, protocol));
if ( state != HttpStatus.SC_MULTI_STATUS ) {
throw new IOException("Received status code "+state+" when doing PROPFIND on URI="+url);
}
Enumeration propertyEnumeration = propfindMethod.getResponseProperties(url);
if ( propertyEnumeration.hasMoreElements() ) {