How to check a link is already dead or not?

  • Thread starter Thread starter Cylix
  • Start date Start date
As the title,
I have a url, how can I check is it avalible any more?

Thanks!!!

use System.Net.WebClient to access the url. See if you get a valid
response.
 
Hi Cylix

By performing a webrequest and check what you get back


Dim WC As New System.Net.WebClient()
Dim sPage As String = New
System.Text.UTF8Encoding().GetString(WC.DownloadData("http:\\www.google.com"))
 
Back
Top