Posted By

roberocity on 10/10/06


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jwashi10
startupbrite


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.