code: public static InputStream httpGet(final String httpurl, final Map<String, String>... requestProperties) throws IOException {
          HttpURLConnection connection = (HttpURLConnection) new URL(httpurl).openConnection();
          for (Map<String, String> props : requestProperties) {
              addRequestProperties(props, connection);
          }
          return connection.getInputStream();
      }
docs: Simple http get imlementation. Supports HTTP Basic authentication via request properties. You
  may want to use {@link #createBasicAuthenticationProperty} to add authentication.
  
  @param httpurl
  get url
  @param requestProperties
  optional http header fields (key-&gt;value)
  @return input stream of response
  @throws IOException