Is there any way to check whether a hyperlink is broken or not using java program?
Printable View
Is there any way to check whether a hyperlink is broken or not using java program?
yes, a quick (for coder) but ugly way would be to establish a simple connection. If it exists then the tested url works.
A nicer but heavier approach would be by using http client apache library. It supports normal "browser like" behaviour so you could send a message to an URL you need and then read response headers which would clearly say what happened.