protected static String readOutput(URL url) throws IOException {
    StringBuilder out = new StringBuilder();
    InputStream in = url.openConnection().getInputStream();
    byte[] buffer = new byte[64 * 1024];
    int len = in.read(buffer);
    while (len > 0) {
      out.append(new String(buffer, 0, len, StandardCharsets.UTF_8));
      len = in.read(buffer);
    }
    return out.toString();
  }
Read in the content from a URL
@param url URL To read
@return the text from the output
@throws IOException if something went wrong
hbase-http/src/test/java/org/apache/hadoop/hbase/http/HttpServerFunctionalTest.java