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"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top