assertEquals(new URI("http://" + host + ":" + port + "/newlocation/", false),
httpget.getURI());
} finally {
httpget.releaseConnection();
}
thatserver.destroy();
}
public void testRedirectWithCookie() throws IOException {
client.getState().addCookie(new Cookie("localhost", "name", "value", "/", -1, false));