assertEquals("http://jsoup.org", con.response().url().toString());
}
@Test
public void postRedirectsFetchWithGet() throws IOException {
Connection con = Jsoup.connect("http://direct.infohound.net/tools/302.pl")
.data("Argument", "Riposte")
.method(Connection.Method.POST);
Connection.Response res = con.execute();
assertEquals("http://jsoup.org", res.url().toExternalForm());
assertEquals(Connection.Method.GET, res.method());
}