rd.close();
return response.toString();
} catch (SocketException e) {
if (e.getMessage().equalsIgnoreCase("Permission denied: connect")) {
throw new PermissionDeniedException("Permission to login was denied");
}
} catch (Exception e) {
String message = "Login failed...";
progress.setString(message);
} finally {