public NativeMessageHandler(bool throwOnCaptiveNetwork, bool customSSLVerification, NativeCookieHandler cookieHandler = null) { this.throwOnCaptiveNetwork = throwOnCaptiveNetwork; if (customSSLVerification) { client.SetHostnameVerifier(new HostnameVerifier()); } noCacheCacheControl = (new CacheControl.Builder()).NoCache().Build(); client.SetFollowSslRedirects(false); client.FollowRedirects = false; }