assertEquals("Jsoup, Jonathan", ihVal("uname", doc));
}
@Test
public void doesGet() throws IOException {
Connection con = Jsoup.connect(echoURL + "?what=the")
.userAgent("Mozilla")
.referrer("http://example.com")
.data("what", "about & me?");
Document doc = con.get();
assertEquals("what=the&what=about+%26+me%3F", ihVal("QUERY_STRING", doc));
assertEquals("the, about & me?", ihVal("what", doc));
assertEquals("Mozilla", ihVal("HTTP_USER_AGENT", doc));
assertEquals("http://example.com", ihVal("HTTP_REFERER", doc));
}