HTTPHeader header = new HTTPHeader();
header.setHeaderValue(HTTPHeader.DESTINATION_HEADER, dst);
header.setHeaderValue(HTTPHeader.DEPTH_HEADER, depth > 0 ? "infinity" : "0");
SVNErrorMessage context = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "COPY of {0}", src);
IHTTPConnection httpConnection = getConnection();
HTTPStatus status = httpConnection.request("COPY", src, header, (StringBuffer) null, -1, 0, null, null, context);
if (status.getCode() >= 300 && status.getError() != null) {
SVNErrorMessage err = status.getError();
SVNErrorManager.error(err, SVNLogType.NETWORK);
}
}