status = httpClient.executeMethod(httpMethod);
rsp = IOUtils.toString(httpMethod.getResponseBodyAsStream());
} catch (IOException e) {
throw new IOException("Failed to " + method + " : " + urlTail + " : code=" + status + " response=" + e.getMessage(), e);
} finally {
httpMethod.releaseConnection();
}
trace(status + ": " + rsp);
return new HttpReply(status, rsp);