apache httpclient 4.4: HostnameVerifier transition from 4.3.x
问题 HttpClient 4.3 had three static variables in org.apache.http.conn.ssl.SSLConnectionSocketFactory : STRICT_HOSTNAME_VERIFIER BROWSER_COMPATIBLE_HOSTNAME_VERIFIER ALLOW_ALL__HOSTNAME_VERIFIER When upgrading the dependency to version 4.4 of HttpClient, I see that all the above constants are deprecated. The deprecation note in JavaDoc mentioned to use org.apache.http.conn.ssl.DefaultHostnameVerifier . Reading the docs, I assume that DefaultHostnameVerifier is a direct replacement to STRICT