Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
02-23-2011, 09:54 PM #1
- Join Date
- Feb 2011
- Thanked 0 Times in 0 Posts
Why am I only reading 1169 characters with StreamReader?
I'm trying to read an html but it's only reading the first 1169 characters? And when I open the source code it's huge!
here is the html I'm trying to read http://mesowest.utah.edu/cgi-bin/dro...graph=0&past=0. If i enter in another website it reads 23,000 characters.
Protected Sub Button82_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button82.Click Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://mesowest.utah.edu/cgi-bin/droman/meso_base.cgi?stn=DPG01&unit=1&time=LOCAL&product=&year1=&month1=&day1=00&hour1=00&hours=&graph=0&past=0") Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim sourcecode As String = sr.ReadToEnd() TextBox319.Text = sourcecode.Length End Sub