code: public static String getContentFromUrlAsString(String url, Map inCookies, Map outCookies, boolean trustAllCerts)
      {
          byte[] bytes = getContentFromUrl(url, inCookies, outCookies, trustAllCerts);
          return bytes == null ? null : StringUtilities.createString(bytes, "UTF-8");
      }
docs: Get content from the passed in URL.  This code will open a connection to
  the passed in server, fetch the requested content, and return it as a
  String.
  
  @param url URL to hit
  @param inCookies Map of session cookies (or null if not needed)
  @param outCookies Map of session cookies (or null if not needed)
  @param trustAllCerts if true, SSL connection will always be trusted.
  @return String of content fetched from URL.