code: protected HttpURLConnection openConnection(String url) throws IOException {
      HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
      connection.setConnectTimeout(DEFAULT_CONNECT_TIMEOUT_MILLIS);
      connection.setReadTimeout(DEFAULT_READ_TIMEOUT_MILLIS);
      connection.setRequestProperty("Content-Type", "application/json");
      connection.setRequestProperty("User-Agent", USER_AGENT);
      connection.setDoInput(true);
      return connection;
    }
docs: Configures defaults for connections opened with {@link #upload(String)}, {@link
  #attribution(String)} and {@link #projectSettings(String)}.