Differences between version 3 and revision by previous author of MicrosoftDirtyTricks.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Wednesday, November 27, 2002 11:34:56 am | by JohnMcPherson | Revert |
Older page: | version 2 | Last edited on Monday, November 25, 2002 11:07:34 pm | by PerryLorier | Revert |
@@ -4,10 +4,10 @@
Microsoft's Knowledge Database (and maybe other parts of their vast web site) renders badly with "other" browsers, for example with overlapping text so that parts are unreadable. It isn't just carefully crafted code that gets handled differently - their webserver sends back different data depending on how your browser identifies itself:
$ URL="http://support.microsoft.com/default.aspx?scid=kb;EN-US;314458"
$ IE_UA="Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; YComp 5.0.2.6)"
$ OTHER_UA="Mozilla/5.0 Galeon/1.2.2 (X11; Linux i686; U;) Gecko/20020524"
- $ wget --user-agent=$IE_UA --output-document=ie.html $URL
- $ wget --user-agent=$OTHER_UA --output-document=not_ie.html $URL
+ $ wget --user-agent="
$IE_UA"
--output-document=ie.html $URL
+ $ wget --user-agent="
$OTHER_UA"
--output-document=not_ie.html $URL
$ ls -l
-rw-r--r-- 1 jrm21 ugrad 28923 Nov 25 16:34 ie.html
-rw-r--r-- 1 jrm21 ugrad 26701 Nov 25 16:34 not_ie.html