I suspect that the problem is caused by the fact that there is really no 'browser' behind the HttpGetRequest object. If memory serves, browser detection is predicated on the presence of the User-Agent header. This is certainly true with the adaptive rendering
in ASP.NET. I don't see anything in your code placing such a header in the request. And there is no automatic transfer of the headers from incoming on your ASP.NET page to the request you're making to https://localhost/login.asp So if you were to add the appropriate
User-Agent header, then I believe the login.asp would indeed be to determine what the incoming browser was. HTH
Bruce Johnson [.NET MVP]
http://www.objectsharp.com/blogs/Bruce
None
0 Points
206 Posts
Re: HttpWebRequest drops Browser Version
May 30, 2004 01:10 PM|BruceJohnson|LINK
http://www.objectsharp.com/blogs/Bruce