January 19th, 2009, 06:03 AM
Is there any way to check whether a hyperlink is broken or not using java program?
January 19th, 2009, 06:36 PM
Re: Hyperlink check
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.
Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
I had a nightmare last night. I was dreaming that Iím 64-bit and my blanket is 32-bit and I couldnít cover myself with it, so Iíve spent the whole night freezing. And in the morning I find that my blanket just had fallen off the bed. =S (from: bash.org.ru)
//always looking for job opportunities in AU/NZ/US/CA/Europe :P
USE [code] TAGS! Read this FAQ if you are new here. If this post was helpful, please rate it!
Tags for this Thread
Click Here to Expand Forum to Full Width