code: public static void setSslRequired(boolean sslRequired) {
          if (HttpUtil.sslRequired != sslRequired) {
              HttpUtil.sslRequired = sslRequired;
              HttpUtil.httpClient = null;
          }
      }
docs: Sets flag telling if SSL hostname validation should be done which also clears the cached httpClient. This method
  is not thread-safe and could cause race conditions if the class is used with different settings at the same
  time, but that is not expected.
  
  @param sslRequired the desired value