Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HostnameVerifier hostnameVerifier = new HostnameVerifier() {
- @Override
- public boolean verify(String hostname, SSLSession session) {
- return true;
- }
- };
- HttpsURLConnection httpsConn = (HttpsURLConnection)urlConnection;
- httpsConn.setHostnameVerifier(hostnameVerifier);
Add Comment
Please, Sign In to add comment