On my page, there is a download link. I want to check if this link is a good link, which means the user can really download the file they want. If the link doesn't work, then I want to provide the user another back-up link.
The problem I have is I don't know how to check if the link is a good link or bad link.