Posts

Showing posts from August, 2014

HTTP User agent string

When designing web pages we have to be careful of various browsers different ways of interpreting the specification. Traditionally developers read the HTTP_USER_AGENT when the user connects to the server and then send that user content that matches the browsers ability to display. Over the years things have gotten better, Internet Explorer is moving to be standards compliant and thats a good thing.

This recent article points out that Microsoft are putting the words "like Gecko" in its user agent string, so that web servers send them content that is meant for the Firefox browser. Rather than content that was designed for older versions of Internet Explorer. This of course is wrong, claiming to be something you're not could cause other bugs, Microsoft have weighed up the balance of cost/benefits and decided to go ahead. Fair enough, but what is the real solution?

Well whenever you have to do something its best to look around to see what others are doing. If you look over a…