Topic: Validating existence of URL ??

Can any body give sample code validate the URL(existence)..