View Full Version : Why am I only reading 1169 characters with StreamReader?

02-23-2011, 09:54 PM
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/droman/meso_base.cgi?stn=DPG01&unit=1&time=LOCAL&product=&year1=&month1=&day1=00&hour1=00&hours=&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