browser report

leontager

Well-known member
Joined
Jun 17, 2003
Messages
89
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
 
Dim stream As IO.StreamReader
Dim wc As New Net.WebClient()
stream = New IO.StreamReader(wc.OpenRead("URL"))
RichTextBox1.Text = stream.ReadToEnd

This is what I am doing. I am just wondering how to tell the server on their side that you are using either explorer or netscape or opera.


edit: example of this would be something like http://ricelawn.freemethodistchurch.org/browserchek.html

how can I make it display internet explorer instead of 5.0 (Windows; en-US) :)
 
Last edited by a moderator:
Back
Top