区分浏览器请求和移动应用程序请求的最佳方法是什么? [英] Best way to differentiate between browser requests and requests from mobile apps?
本文介绍了区分浏览器请求和移动应用程序请求的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序中有一些操作要求用户登录网站,有些操作需要人(基本上是移动应用程序用户)进行身份验证。为了知道我是否需要通过移动身份验证来推送当前请求,我希望能够判断该请求是来自浏览器还是来自iphone。
I have some actions in my app that require a user to have logged in on the website, and some that require a "person" (a mobile app user basically) to have authenticated. In order to know whether i need to push the current request through the mobile authentication, i'd like to be able to tell whether the request came from a browser or from an iphone for example.
是否有请求标题或我可以查看的内容?
Is there a request header or something i can look at for this?
谢谢,最大
推荐答案
看看 mobile_fu
这篇关于区分浏览器请求和移动应用程序请求的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文