leontager Posted August 16, 2003 Posted August 16, 2003 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? Quote
Leaders dynamic_sysop Posted August 17, 2003 Leaders Posted August 17, 2003 i'm not sure what method you are trying to use, so i'll post this quick example i knocked up to see if it helps... Dim wc As New Net.WebClient() Try With wc Dim sReader As New IO.StreamReader(.OpenRead("http://www.xtremedotnettalk.com/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 Quote
*Experts* Bucky Posted August 17, 2003 *Experts* Posted August 17, 2003 What site are you trying to access, leontager? Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
leontager Posted August 25, 2003 Author Posted August 25, 2003 (edited) 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) :) Edited August 25, 2003 by leontager Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.