Looking to test mobile websites in your desktop browser? Or, maybe you need to test page weight and load times in the mobile environment? These tasks are easily done by changing the browser's default User Agent header. This article describes a few simple methods of switching User Agents in desktop browsers.
The standard way to pass information to the server about the visiting device is to include it in the User-Agent (UA) string. This information typically passes the name and version of the browser among many other details. In order to get an understanding of which mobile browsers use your site, you need to know their User-Agent strings. Here’s a handy list of UAs that you may want to use.
With each iteration of the iPhone, there are a few models to choose from. This makes accurately detecting the exact specifications of a device a potential headache.