Add the below code - String authString = "admin" + ":" + "admin";byte[] authEncBytes = Base64.encodeBase64(authString.getBytes());String authStringEnc = new String(authEncBytes);HttpURLConnection connection = (HttpURLConnection) url.openConnection();connection.setRequestMethod("GET");connection.se...