I am trying to create a stream of a source of a website. I do not get the same source as I would if I visited the same link simply by using IE. instead I get a message that my browser is not allowed. How do I report which browser I am using?
im not sure what method you are trying to use, so ill post this quick example i knocked up to see if it helps...
Code:
Dim wc As New Net.WebClient()
Try
With wc
Dim sReader As New IO.StreamReader(.OpenRead("http://www.computerhelp.forum/t75697.html"))
RichTextBox1.AppendText(sReader.ReadToEnd)
sReader.BaseStream.Flush()
sReader.Close()
sReader = Nothing
End With
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.