Snatch HTML : Web Page « Network Remote « VB.Net






Snatch HTML

  
Public Class MainClass
    Public Shared Sub Main
        System.Console.WriteLine(GetPageHTML("http://www.google.com"))
    End Sub

    Public Shared Function GetPageHTML(ByVal URL As String) As String
        Dim objWC As New System.Net.WebClient()
        Return New System.Text.UTF8Encoding().GetString(objWC.DownloadData(URL))
    End Function

End Class

   
    
  








Related examples in the same category

1.Read Amazon web page
2.Read web page toolsRead web page tools
3.Snatch HTML with Timeout