Screen Scrape - old


/ Published in: VB.NET
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Screen Scraping with .NET
  2.  
  3. Private Function ReadPage(ByVal url as String) As String
  4.  
  5. Dim objRequest As WebRequest = HttpWebRequest.Create(url)
  6.  
  7. Dim objResponse As WebResponse = objRequest.GetResponse()
  8.  
  9. Dim objStreamReader As New StreamReader(objResponse.GetResponseStream())
  10.  
  11. Dim strPage As String = objStreamReader.ReadToEnd
  12.  
  13. objStreamReader.Close()
  14.  
  15. Return strPage
  16.  
  17. End Function

Report this snippet


Comments


You need to login to view comments.