We Recommend

Beginning VB.NET Beginning VB.NET
Visual Basic .NET is the latest version of the most widely used programming language in the world, popular with professional developers and complete beginners alike. This book will teach you Visual Basic .NET from first principles. You'll quickly and easily learn how to write Visual Basic .NET code and create attractive windows and forms for the users of your applications.


Posted By

roberocity on 10/10/06


Tagged


Versions (?)


Screen Scrape - old


Published in: VB.NET 


  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 

You need to login to post a comment.