this.client.executeMethod(httppost);
assertEquals(HttpStatus.SC_MOVED_TEMPORARILY, httppost.getStatusCode());
assertEquals("/oldlocation/", httppost.getPath());
assertEquals(new URI("/oldlocation/", false), httppost.getURI());
} finally {
httppost.releaseConnection();
}
}
public void testRelativeRedirect() throws IOException {
String host = this.server.getLocalAddress();