I need a solution for testing the availability of http and https servers. For example: I need to know if servers (apache and tomcat) are available or not.
I don't need to consume inputstream, just display a green button if it works or red if it doesn't.