apache httpclient 4.4: HostnameVerifier transition from 4.3.x

后端 未结 4 2018
忘掉有多难
忘掉有多难 2021-02-07 07:27

HttpClient 4.3 had three static variables in org.apache.http.conn.ssl.SSLConnectionSocketFactory:

  1. STRICT_HOSTNAME_VERIFIER
  2. BROWSER_COMPATIBLE
4条回答
  •  时光取名叫无心
    2021-02-07 08:05

    I read all this and nothing worked for me, here's what saved my day: https://stackoverflow.com/a/36507502/3090309

    I was using:

    compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
    

提交回复
热议问题