I have a specific link, something like https://wiki.dummy.com/absolute/path/of/webpage
and I want to check if this URL is valid. Obviously pinging the complete URL is not an option, and though pinging wiki.dummy.com
works, that doesn't prove that the URL is valid. Is there any other way I could quickly validate and then implement it as Java code?
UPDATE: I found this answer working for me- https://stackoverflow.com/a/18135030/1649068