Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

webRequest is getting response version of IE needs to be updated for site

$
0
0

Here is the code I am using in VB 10.

DiminStreamAsStreamReader


DimwebRequestAsWebRequest

DimwebresponseAsWebResponse

        webRequest = webRequest.Create(TextBox1.Text)

        webresponse = webRequest.GetResponse()

   

InStream=NewStreamReader(webresponse.GetResponseStream())

        TextBox2.Text = inStream.ReadToEnd()


Everything works perfectly accept the response is that the version of IE needs to be updated to use the site.   However on my Win 7 based machine, when I go into IE directly and look at the source that way, it shows everything that is wanted.   So clearly the server is looking for something to validate the version of IE which it is not getting from the request.   So what do I do to get around this problem?

Thank you for your assistance.


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>