Friday, January 21, 2011

Detecting a Mobile Browser on Google App Engine

uastring = self.request.headers.get('user_agent')
if "Mobile" in uastring and "Safari" in uastring:
  # do iphone / ipod stuff
Via stack overflow

No comments:

Post a Comment : Fact or Allegation ? Just another twisted title for sensationalism

This is yet another example of’s sensationalism twisted titles. The title says, as if this was a fact, woman made to urinate in pub...