Inconsistent UserAgent Strings with IE9

I have a website running on a server in IIS6. The website is configured with two host bindings on port 80:

  • mywebsite1 <- Requires an entry in the local Windows file to fake a DNS entry.
  • mywebsite2.mydomain.com <- uses DNS

So, theoretically using a web browser to access:

... both should display the same site in my browser.

However, when I use IE9 to view http: // mywebsite1 / , the UserAgent that the browser sends to the web server is as follows:

Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+Trident/5.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+Tablet+PC+2.0;+MS-RTC+LM+8;+OfficeLiveConnector.1.5;+OfficeLivePatch.1.3;+.NET4.0C)

But when I use IE9 to view http://mywebsite2.mydomain.com/ , the UserAgent that the browser sends to the web server is this:

Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0)

IE9 UserAgent ? , CSS.

:

  • .
  • - ASP.NET Framework 3.
  • - - IIS 6.
  • - - IE9.
  • ( , , - )
+3
2

IE9 reports Mozilla/4.0, " " http://mywebsite1/? ( html thats.)

+4

useragent; , useragent, , , -, . , useragent

WebBrowser1.Navigate(txtAddressBar.Text, Nothing, Nothing, "user-agent:" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.2 (KHTML, Gecko). ChromePlus/4.0.222.3 Chrome/4.0.222.3 Safari/532.2" )

; , .

0

All Articles