I am getting this \'HTTPS hostname wrong:\' error when trying to connect to a server using https. My url looks something like this
https://sub.domain.com/tam
static { HttpsURLConnection.setDefaultHostnameVerifier((hostname, session) -> hostname.equals("domain name")); }