download a google result webpage
I'm trying to download a google result webpage. As an example, lets take this url.
https://www.google.com/#hl=en&sclien...w=1272&bih=618
I'm not able to download the content using the below commands. I think it is because the webpage is using java or ajax. How do you download the actual content?
******************
TextBox1.Text = WebBrowser1.DocumentText
or
Dim wc As New WebClient
Dim html As String = wc.DownloadString(TextBox2.Text)
or
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(url)
Dim response As System.Net.HttpWebResponse = request.GetResponse
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim source_code As String = sr.ReadToEnd