本文介绍了区分iPhone Web浏览器和iPhone app用户代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在服务器上区分来自iPhone的请求是通过网络浏览器还是通过带有目标c的应用程序的iphone来区分的最佳方法是什么?我在用户代理字符串中寻找什么差异?
What is the best way to distinguish on a server between a request that came from an iPhone through the web browser vs through an iphone with an app written in objective c? What differences do I look for in the user agent string?
推荐答案
我相信Safari应用程序中的用户代理以Mozilla开头,而来自应用程序的用户代理以名称开头app。
I believe user agents from the Safari app start with "Mozilla", while user agents from apps start with the name of the app.
这篇关于区分iPhone Web浏览器和iPhone app用户代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!