With Firefox you can masquerade as your phone in a matter of minutes.

  • Install User Agent Switcher.
  • Open the built-in browser of your phone and visit: UserAgentString.com. This website will show the User-Agent string it receives from the HTTP User-Agent header sent by your browser.
  • From your Firefox menu, select: Tools > User Agent Switcher > Options > Options > User Agent > Add
  • Enter some description in the 'Description' field. In the 'User Agent' field enter the user-agent string carefully and save it.
  • From the menu, select: Tools > User Agent Switcher > [The user agent you just added].

Now, you can browse sites like Google, Yahoo, etc. to get a feel of how these sites are going to look like on your cell phone. The web servers would respond to you in the same manner it would respond to your cell phone.

I was trying to download Opera Mini 4 Beta for my cell phone. But sadly, I found that the website did not have a direct link to the MIDlet jar file for my phone. Instead, it asked me to visit http://mini.opera.com/beta with my cell phone and download the 97 KB file. To save my 1 rupee, I decided to masquerade as the Sony Ericsson K750i browser from my PC. I did it with netcat (the TCP/IP Swiss Army Knife) once. It worked but it was cumbersome. The method discussed above is an easier way to do it.

With the phone's user agent string set in Firefox, you get an XML file on visiting http://mini.opera.com/beta. Save it and find a link to a JAD file in the code. (For me, it was: /beta/mini.jad?rnd=1999705223&edition=hifi. So I could download it from http://mini.opera.com/beta/mini.jad?rnd=1999705223&edition=hifi.) Look for the 'MIDlet-Jar-URL' attribute in the JAD file. It is the URL to the JAR file for your phone. Download it and install it.

1 comment

Thomas said:

Thanks so much man, this helped me enormously. Keep going and good luck with your endeavors

Post a comment